Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/cerebrusinc/qolrus
- Owner: cerebrusinc
- License: mit
- Created: 2023-10-08T05:21:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T00:47:27.000Z (about 1 year ago)
- Last Synced: 2024-11-16T23:15:53.187Z (about 2 months ago)
- Topics: crate, quality-of-life, rust
- Language: Rust
- Homepage: https://crates.io/crates/qolrus
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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