Crate named_colour

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.25"

Re-exports§

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

Modules§

extextended
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