rainbow_vis 2.0.0 copy "rainbow_vis: ^2.0.0" to clipboard
rainbow_vis: ^2.0.0 copied to clipboard

Color data visualization; easily map numerical domain to a smooth-transitioning color range.

Pub Travis

Color data visualization; easily map numbers to a smooth-transitioning color legend. This is a port of the RainbowVis-JS written by anomal.

Usage #

To interpolate a color among the spectrum, use the list access operator, e.g.

var rb = Rainbow(spectrum: ["#ff0000", 'white', '00FF00'],
                 rangeStart: -10,
                 rangeEnd: 10);
var myColdColor = rb0[-9.32];
var myWarmColor = rb0[8.44];

Testing #

To run on vm (default): pub run test As usual, tests can be run on other platforms with -p<platform>

See Also #

For a Flutter-specific version of this package, see rainbow_color which interfaces with Color objects and provides additional tween support.

4
likes
120
pub points
49%
popularity

Publisher

verified publisherstarheightmedia.com

Color data visualization; easily map numerical domain to a smooth-transitioning color range.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, meta

More

Packages that depend on rainbow_vis