From fb0eb6abac31ab1945a5b32e68824c9f9420d71f Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 19 Feb 2023 19:03:51 -0600 Subject: refactor: bind (nearly) all nvg functions --- demo/vector/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demo/vector') diff --git a/demo/vector/main.lua b/demo/vector/main.lua index 595131b..fda4bc8 100644 --- a/demo/vector/main.lua +++ b/demo/vector/main.lua @@ -7,7 +7,7 @@ local nvg = honey.nvg local vg function honey.init() - vg = nvg.Context() + vg = nvg.CreateContext() end @@ -31,7 +31,7 @@ end function honey.draw() nvg.BeginFrame(vg, 640, 480, 1.0) nvg.StrokeWidth(vg, 20) - nvg.StrokeColor(vg, 1, 0, 0, 1) + nvg.StrokeColor(vg, nvg.RGB(1, 0, 0)) local w = 640 local h = 480 -- cgit v1.2.1