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:
parent
2584e46816
commit
3441dd266f
3 changed files with 53 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue