Crates.io | rand_rbg |
lib.rs | rand_rbg |
version | 0.1.0 |
source | src |
created_at | 2023-07-09 22:08:14.170508 |
updated_at | 2023-07-09 22:08:14.170508 |
description | Generate a random rgba-formatted color. |
homepage | |
repository | |
max_upload_size | |
id | 912393 |
size | 12,372 |
Generate a random rgba()-formatted color.
Inspired by "random-rgb-color" by mrmrs, which was in turn inspired by random-hex-color by John Otander.
This is a simple project for learning idiomatic Rust, publishing Rust projects, and how to approximate other programs using Rust.
It can be used to generate a string such as rgba(179, 134, 103, 0.33)
, or a rust struct that looks like this:
RandomColor {
red: 189,
green: 138,
blue: 54,
alpha: 0.79
}