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, Flag!"extendedOutgoingColours" extendedOutgoingColours)
    @safe pure
    string
    ircColourByHash
    (
    const string word
    ,
    const Flag!"extendedOutgoingColours" extendedOutgoingColours
    )
  2. dstring ircColourByHash(dstring word, Flag!"extendedOutgoingColours" extendedOutgoingColours)

Parameters

word string

string to tint.

extendedOutgoingColours Flag!"extendedOutgoingColours"

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

Return Value

Type: string

The passed string encased within IRC colour coding.