9 local R =
math.floor(c/0x1000000)
10 local G =
math.floor(c/0x10000) - (R * 0x100)
11 local B =
math.floor(c/0x100) - (R * 0x10000) - (G * 0x100)
12 local A = c - (R * 0x1000000) - (G * 0x10000) - (B * 0x100)
13 canvas:attrColor(R, G, B, A)
21local function
rect(mode, x, y, width, height)
22 canvas:drawRect(mode == 0 and
'fill' or
'frame', x, y, width, height)
32local function
font(name, size)
33 if type(name) ==
'number' and not size then
37 canvas:attrFont(name, size)
40local function
line(x1, y1, x2, y2)
41 canvas:drawLine(x1, y1, x2, y2)
56 local event_draw = function()
local function require(std, game, application)
local function draw(std, game)
local function install(std, lgame, application, ginga)
local function line(x1, y1, x2, y2)
local function font(name, size)
local function rect(mode, x, y, width, height)
local function text(x, y, text)