diff options
author | scuri <scuri> | 2009-06-13 20:38:51 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-06-13 20:38:51 +0000 |
commit | 0743c3f4a24b3a6d8df39bc08412444f9ae25921 (patch) | |
tree | 613e08df6b51765a31679eac94ecd4e221cc4cf8 /test/lua/render_cd.lua | |
parent | b657fd0b90974d49aa6de811cd772c3e4bca3a4e (diff) |
*** empty log message ***
Diffstat (limited to 'test/lua/render_cd.lua')
-rw-r--r-- | test/lua/render_cd.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/render_cd.lua b/test/lua/render_cd.lua index c0fa68c..4af8a16 100644 --- a/test/lua/render_cd.lua +++ b/test/lua/render_cd.lua @@ -6,7 +6,11 @@ local image = im.ImageCreate(500, 500, im.RGB, im.BYTE) local canvas = image:cdCreateCanvas() -- Creates a CD_IMAGERGB canvas canvas:Activate() +canvas:Background(cd.EncodeColor(255, 255, 255)) canvas:Clear() +fgcolor = cd.EncodeColor(255, 0, 0) -- red +fgcolor = cd.EncodeAlpha(fgcolor, 50) -- semi transparent +canvas:Foreground(fgcolor) canvas:Font("Times", cd.BOLD, 24) canvas:Text(100, 100, "Test") canvas:Line(0,0,100,100) |