Crate named_colour

Source
Expand description

Provides Hex Codes for colours:

  • enums that return a hex code string for named colours
  • rgb colour struct to configure a colour an rgb colour and display as decimal or hex

§Examples

§Use Basic colour

 [dependencies]
 named-colour = "0.3.20"

Re-exports§

pub use ext::name_colour;
pub use ext::random_named_colour;
pub use ext::Black;
pub use ext::Blue;
pub use ext::Brown;
pub use ext::Cyan;
pub use ext::ExtendedColour;
pub use ext::Green;
pub use ext::Purple;
pub use ext::Red;
pub use ext::White;
pub use ext::Yellow;

Modules§

ext
Extended named colours providing shades collected in enums for the main colour

Enums§

Prefix
Prefixes

Traits§

ToHex
Implement the ToHex trait

Type Aliases§

RGB8
8-bit RGB