Colourado

A small and minimalistic library to generate a random color palette.
The user-facing Color struct contains RGB colors ranging from 0 to 1.
All colors are of type f32 (no exceptions)

Usage

```rust use colourado::{Color, ColorPalette};

let palette = ColorPalette::new(4); let randomcolor = palette[0].red; let colorarray: [f32; 3] = palette[1].toarray(); let hue = 315.0; let saturation = 0.5; let value = 0.3; let rgbcolor: Color = Color::hsvtorgb(hue, saturation, value); ```

Example

A color palette might look like this when rendered:

Example image

Test the color palettes for yourself by running
cargo run --example preview N
where N is the amount of colors to generate and display.