Skip to content

Commit 01927ec

Browse files
committed
demonstrate new colormaps in already existing examples
1 parent 1237dc9 commit 01927ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plotters/examples/3d-plot2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3737
pdf,
3838
)
3939
.style_func(&|&v| {
40-
(&HSLColor(240.0 / 360.0 - 240.0 / 360.0 * v / 5.0, 1.0, 0.7)).into()
40+
(VulcanoHSL::get_color(v / 5.0)).into()
4141
}),
4242
)?;
4343

plotters/examples/mandelbrot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2828

2929
for (x, y, c) in mandelbrot_set(xr, yr, (pw as usize, ph as usize), 100) {
3030
if c != 100 {
31-
plotting_area.draw_pixel((x, y), &HSLColor(c as f64 / 100.0, 1.0, 0.5))?;
31+
plotting_area.draw_pixel((x, y), &MandelbrotHSL::get_color(c as f64 / 100.0))?;
3232
} else {
3333
plotting_area.draw_pixel((x, y), &BLACK)?;
3434
}

0 commit comments

Comments
 (0)