1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-28 08:49:30 +00:00

Added ctr.gfx.color lib; color.setDefault and color.getDefault working

This commit is contained in:
Reuh 2015-08-18 16:19:11 +02:00
parent 2584e46816
commit 3441dd266f
3 changed files with 53 additions and 2 deletions

View file

@ -15,8 +15,13 @@ while os.run() do
if keys.held.down then y = y + 1 end
gfx.startFrame()
gfx.color.setDefault(0xFF0000FF)
gfx.rectangle(x, y, 10, 10)
gfx.color.setDefault(0x00FFFFFF)
gfx.rectangle(240, 150, 120, 10)
gfx.endFrame()
gfx.render()