Permalink
Browse files

Moved text on the foreground

  • Loading branch information...
1 parent fef7add commit acb171e13469b66491392454b4047c7e599847b9 @adriweb committed Aug 29, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 BetterLuaAPI.lua
  2. BIN BetterLuaAPI.tns
View
@@ -175,14 +175,15 @@ function on.paint(gc)
drawPoint(50,50)
drawCircle(150,50,20)
drawSquare(200,60,30)
- local isCalcCX = device.hasColor and " a CX." or "not a CX."
- drawXCenteredString("You are on the " .. device.theType .. ", and it's " .. isCalcCX, 50)
- drawCenteredString("hello world - Centered String")
- drawXCenteredString("X-Centered String - Adriweb here \\o/",0.75*pwh())
drawRoundRect(200,160,51,51,10)
fillRoundRect(100,160,100,75,20)
verticalBar(20)
horizontalBar(40)
+ setColor("black")
+ local isCalcCX = device.hasColor and "a CX." or "not a CX."
+ drawXCenteredString("You are on the " .. device.theType .. ", and it's " .. isCalcCX, 50)
+ drawCenteredString("hello world - Centered String")
+ drawXCenteredString("X-Centered String - Adriweb here \\o/",0.75*pwh())
-- screenRefresh()
-- clearWindow({0, 0, 255}) - will fill the screen with the given color. Here, blue.
end
View
Binary file not shown.

0 comments on commit acb171e

Please sign in to comment.