Method: Vedeu::Colours::Translator#rgb

Defined in:
lib/vedeu/colours/translator.rb

#rgbString (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns an escape sequence.

Returns:

  • (String)


187
188
189
190
191
192
193
194
195
# File 'lib/vedeu/colours/translator.rb', line 187

def rgb
  if Vedeu::Configuration.colour_mode == 16_777_216
    register(colour, format(rgb_prefix, *css_to_rgb))

  else
    numbered

  end
end