ircColourByHash

Returns the passed string coloured with an IRC colour depending on the hash of the string, making for good "random" (uniformly distributed) nick colours in IRC messages.

  1. string ircColourByHash(string word, bool extendedOutgoingColours)
    @safe pure
    string
    ircColourByHash
    (
    const string word
    ,)
  2. dstring ircColourByHash(dstring word, bool extendedOutgoingColours)

Parameters

word string

string to tint.

extendedOutgoingColours bool

Whether or not to use extended colours (16-98).

Return Value

Type: string

The passed string encased within IRC colour coding.