1 unstable release
0.1.0 | Oct 12, 2023 |
---|
#1412 in Development tools
10KB
167 lines
qolrus
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:
Any suggestions or fixes needed can be submitted here.
Functions
random_color
Generate a random colour.
Example
use qolpy::{random_colour, ColourType};
fn main() {
let colour: String = random_colour(ColourType::HEX);
println!("The colour is: '{}'", colour)
// The colour is: '#f7f7f7'
}
Availabe (ENUM) colour types
- HEX
- RBG
- CMYK
- HSV
- HSL
lib.rs
:
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:
Any suggestions or fixes needed can be submitted here.
Functions
random_color
Generate a random colour.
Example
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
Dependencies
~310KB