© 1999-2048 dssz.net 粤ICP备11031372号
[其它] colorous:图表和地图的配色方案-源码
说明:有色 此板条箱提供了从移植的顺序,发散和分类配色方案的集合。可以使用有理指数i/n或连续浮动0 ≤ t ≤ 1来采样每种配色方案。 pub fn eval_rational(&self, i: usize, n: usize) -> Color pub fn eval_continuous(&self, t: f64) -> Color 例子 let gradient = colorous :: VIRIDIS; for i in 0 .. 100 { println!<weixin_42126399> 上传 | 大小:32kb