Understanding - colour_basics_2018 (Library)


#1

Colour basics provides a fairly comprehensive colour pallet which is compatible to most online resources by utilising common colour codes - which are;
html(HEX), red(RGB), green(RGB), blue(RGB), hue(HSL), sat(HSL), lum(HSL)

In essence, this library contains four commands

  1. Colour this is the ‘object’ of the library and is interpreted as the literal meaning of ‘colour’

  2. -- is used to join the following command to the first - this is essential otherwise the object will interpreted incorrectly.

  3. ORDER this command is linked to colour and is provided with clear interpretation on the next line

  4. order; left to right, this tells DeadLetter that the order is left to right

Viewed in their entirety these commands are easier understood.

Colour -- ORDER
    html(HEX), red(RGB), green(RGB), blue(RGB), hue(HSL), sat(HSL), lum(HSL)

order;
	left to right,

The Library continues to define colours using this format, for example;

Amaranth; 
	#E52B50,	229,	43,		80,		348*,	73%,	53

Resulting in;

html(HEX) = #E52B50, red(RGB) = 229, green(RGB) = 43, blue(RGB) = 80, hue(HSL) = 348*, sat(HSL) = 73%, lum(HSL) = 53


You can view the entire offical DeadLetter library here - https://libs.deadletter.io/colour_basic_2018.txt