Make the color wheel animation in the NanoVG demo match NanoVG
This commit is contained in:
parent
ca36fed47b
commit
df08d76627
|
@ -404,7 +404,7 @@ fn draw_graph(context: &mut CanvasRenderingContext2D, rect: RectF, time: f32) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn draw_color_wheel(context: &mut CanvasRenderingContext2D, rect: RectF, time: f32) {
|
fn draw_color_wheel(context: &mut CanvasRenderingContext2D, rect: RectF, time: f32) {
|
||||||
let hue = time * 0.12;
|
let hue = (time * 0.12).sin() * PI_2;
|
||||||
|
|
||||||
context.save();
|
context.save();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue