diff --git a/examples/hot_code_reloading/graph.v b/examples/hot_code_reloading/graph.v index c8a67d96b6..6372badd6b 100644 --- a/examples/hot_code_reloading/graph.v +++ b/examples/hot_code_reloading/graph.v @@ -1,6 +1,7 @@ module main import gx +import gl import gg import time import glfw @@ -41,7 +42,7 @@ fn (ctx &Context) draw() { ctx.gg.draw_line(Size / 2, 0, Size / 2, Size) // y axis center := f64(Size / 2) for x := -10.0; x <= 10.0; x += 0.002 { - y := (x - 1) * (x - 1) + 1 + y := (x - 1) * (x - 1) - 2 ctx.gg.draw_rect(center + x * Scale, center - y * Scale, 1, 1, gx.Black) }