Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cerebrusinc/qolrus

A suite of random but useful functions that are aimed at giving you 'piece of cake' level comfortability.
https://github.com/cerebrusinc/qolrus

crate quality-of-life rust

Last synced: about 1 month ago
JSON representation

A suite of random but useful functions that are aimed at giving you 'piece of cake' level comfortability.

Awesome Lists containing this project

README

        


qolrus logo

# 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:

- [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 (ENUM) colour types**

- HEX
- RBG
- CMYK
- HSV
- HSL