From 5933f2107af263c69b7fd35ef8e9977a289e75d4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 22 Jul 2019 12:51:22 +0200 Subject: [PATCH] examples/graph: a small import fix --- examples/hot_code_reloading/graph.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }