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(a,b)
36local function
line(x1, y1, x2, y2)
37 canvas:drawLine(x1, y1, x2, y2)
53 canvas:attrColor(0, 0, 0, 0)
local function fps(self, show, x, y)
local function require(std, game, application)
local function fixed_loop()
local function install(std, lgame, application, ginga)
local function line(x1, y1, x2, y2)
local function font(a, b)
local function rect(mode, x, y, width, height)
local function text(x, y, text)
local function draw(std, game)