Relative Content

Tag Archive for rustcolors

How to iterate over the RGB wheel?

I can’t find a library that implements some sort of RGB iterator that iterates from red (255-0-0) to yellow (255-255-0) to etc. Is it possible to implement it?

How to iteratite over the RGB wheel?

I can’t find a library that implements some sort of RGB iterator that iterates from red (255-0-0) to yellow (255-255-0) to etc. Is it possible to implement it? Its struct should implement Iterator<Item=(f64,f64,f64)> and perhaps, it contains max_iters to change its length.

Rust: How to iteratite over the RGB wheel?

I can’t find a library that implements some sort of RGB iterator that iterates from red (255-0-0) to yellow (255-255-0) to etc. Is it possible to implement it? Its struct should implement Iterator<Item=(f64,f64,f64)> and perhaps, it contains max_iters to change its length.