ref: a46617166919cacc82243bf4d78125cfb7c3c7e9
parent: 86ec26aa5f2406240ada06bdbf6b7bf8cd5765f2
author: telephil9 <telephil9@gmail.com>
date: Sun Oct 25 05:32:45 EDT 2020
Rename draw.initdraw() to draw.init()
--- a/lua9.c
+++ b/lua9.c
@@ -166,7 +166,7 @@
}
static const struct luaL_Reg libdraw [] = {
- { "initdraw", linitdraw },
+ { "init", linitdraw },
{ "draw", ldraw },
{ "line", lline },
{ "ellipse", lellipse },
--- a/sample.lua
+++ b/sample.lua
@@ -22,7 +22,7 @@
draw.fillellipse(screen, pt(300, 300), 20, 50, red, ZP)
end
-draw.initdraw('lua sample')
+draw.init('lua sample')
event.init(event.MOUSE|event.KEYBOARD)
red = draw.allocimage(display, rect(0,0,1,1), screen.chan, 1, color.RED)
eresized()