Make the color wheel animation in the NanoVG demo match NanoVG

This commit is contained in:
Patrick Walton 2020-04-10 13:37:06 -07:00
parent ca36fed47b
commit df08d76627
1 changed files with 1 additions and 1 deletions

View File

@ -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) {
let hue = time * 0.12;
let hue = (time * 0.12).sin() * PI_2;
context.save();