kuy / conscale

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

conscale

Umm... aiming to something like d3-scale.

Usage

NYR = Not Yet Released

Example

let map = map_fn((0, 100), (-127, 127));
assert_eq!(-127, map(0));
assert_eq!(0, map(50));
assert_eq!(127, map(100));
assert_eq!(127, map(123)); // clamp

License

MIT

Author

Yuki Kodama / @kuy

About

License:MIT License


Languages

Language:Rust 100.0%