1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! # qolrus v0.1.0
//!
//! A suite of random but useful functions that are aimed at giving you 'piece of cake' level comfortability.
//!
//! This is a port of the following packages:
//! - [qol • js/ts](https://www.npmjs.com/package/@cerebrusinc/qol)
//! - [qolpy • py](https://pypi.org/project/qolpy)
//!
//! Any suggestions or fixes needed can be submitted [here](https://github.com/cerebrusinc/qolrus/issues).
//!
//! # Functions
//!
//! ## random_color
//!
//! Generate a random colour.
//!
//! **Example**
//!
//! ```rs
//! use qolpy::{random_colour, ColourType};
//!
//! fn main() {
//! let colour: String = random_colour(ColourType::HEX);
//! println!("The colour is: '{}'", colour)
//! // The colour is: '#f7f7f7'
//! }
//! ```
//!
//! **Availabe colour types**
//! - HEX
//! - RBG
//! - CMYK
//! - HSV
//! - HSL
pub use ;