Skip to content

Commit

Permalink
Merge pull request #27 from elementh:feature/bump-and-docs
Browse files Browse the repository at this point in the history
Feature/bump-and-docs
  • Loading branch information
elementh committed Dec 18, 2023
2 parents b72c80a + d372ac3 commit f803967
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "random_color"
version = "0.7.0"
version = "0.8.0"
edition = "2021"
authors = ["Lucas Maximiliano Marino <[email protected]>"]
license = "MIT"
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Inspired by [RandomColor](https://github.com/davidmerfield/randomColor) by [davi

Amazing rust projects using `random_color`:

> [fake-rs](https://github.com/cksac/fake-rs)
> a library for generating fake data in Rust
> [news-flash](https://github.com/patchedsoul/news-flash)
> a modern feed reader designed for the GNOME desktop
> [cargo-trend](https://github.com/dalance/cargo-trend)
> cargo subcommand to generate trend graph of dependent crates
Expand All @@ -35,13 +41,15 @@ Amazing rust projects using `random_color`:
Check the online [documentation](https://docs.rs/random_color/latest/random_color/).

```rust
use random_color::color_dictionary::{ColorDictionary, ColorInformation};
use random_color::{Color, Luminosity, RandomColor};

let color = RandomColor::new()
.hue(Color::Blue) // Optional
.luminosity(Luminosity::Light) // Optional
.seed(42) // Optional
.alpha(1.0) // Optional
.dictionary(ColorDictionary::new()) //optional
.to_hsl_string(); //

// color => "hsl(179, 99%, 10%)"
Expand Down Expand Up @@ -101,7 +109,6 @@ let color = RandomColor::new()
## Roadmap

+ Iteartor
+ Documentation

## License

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
//! Inspired by [RandomColor](https://github.com/davidmerfield/randomColor).
//! ### Usage
//! ```rust
//! use random_color::color_dictionary::{ColorDictionary, ColorInformation};
//! use random_color::{Color, Luminosity, RandomColor};
//!
//! let color = RandomColor::new()
//! .hue(Color::Blue) // Optional
//! .luminosity(Luminosity::Light) // Optional
//! .seed(42) // Optional
//! .alpha(1.0) // Optional
//! .dictionary(ColorDictionary::new())
//! .to_hsl_string(); //
//!
//! // color => "hsl(179, 99%, 10%)"
Expand Down

0 comments on commit f803967

Please sign in to comment.