RubyGems Navigation menu

colours 0.2.22

This library is called colours. It unifies colour-related constants and methods, including R,G,B values for colours and the commonly known "HTML colours", such as "slateblue" or "royalblue" and so on. The RGB-related methods and the HTML colours, can also be used in applications such as the KDE Konsole. The HTML colours allow you to cherry-pick from more than different 100 names for colours. The primary goal for this project is to assist you for commandline-applications where colours may be needed. In May 2018, the project was rewritten and should now work better in many ways. Separate tests exist in the subdirectory test/ to ensure that the basic functionality for the various subcomponents of the colours gem do happen to work in a reliable manner. Some of these tests can output all HTML colours - from the commandline, for instance, this is also possible, by passing in the argument 'html_colours' or simply '1'. Example for this: konsole_colours html_colours This can also be tested from within the Colours namespace, via: Colours.test For more information, have a look at the link called "documentation", at the bottom right side of the colours gem homepage:


  1. 0.2.22 - October 29, 2018 (49.5 KB)
  2. 0.2.21 - September 29, 2018 (49 KB)
  3. 0.2.20 - September 22, 2018 (49 KB)
  4. 0.2.19 - September 22, 2018 (49 KB)
  5. 0.2.18 - September 19, 2018 (48.5 KB)
Show all versions (118 total)


  • Robert A. Heiler


SHA 256 checksum:


Total downloads 65,339

For this version 174

= Copy to clipboard Copied!




Required Ruby Version: >= 2.5.3

Required Rubygems Version: >= 2.7.7