diff options
author | sanine <sanine.not@pm.me> | 2023-02-19 19:03:51 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-19 19:03:51 -0600 |
commit | fb0eb6abac31ab1945a5b32e68824c9f9420d71f (patch) | |
tree | b414bb9f93af85755df553d003ed88afc24cef50 /demo/vector | |
parent | bc4af3b47260ee0f79343303b135d1ea32cde4d4 (diff) |
refactor: bind (nearly) all nvg functions
Diffstat (limited to 'demo/vector')
-rw-r--r-- | demo/vector/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |