fillRect()

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Sid-Ali
Posts: 10
Joined: Thu Dec 29, 2005 6:27 am

fillRect()

Post by Sid-Ali »

hello, I like to have a rectangle with a alpha layer with the functions image:fillRect(x, y, width, height, [ color = transparency-black ]), but how to use it to have a alpha layer I tested its but its does not function??

Code: Select all

color = Color.new(255, 0, 0, 155) screen:fillRect(10, 10.  200, 150, color)
is syntax good? thank you to help me:D
Sid-Ali
Slopey
Posts: 24
Joined: Sun Jul 31, 2005 8:13 pm

Post by Slopey »

screen:fillRect(10, 10. 200, 150, color)

should be

screen:fillRect(10, 10, 200, 150, color)

You've got a period after the y coordinate which should be a comma.
Sid-Ali
Posts: 10
Joined: Thu Dec 29, 2005 6:27 am

Post by Sid-Ali »

Hello, sorry for this error it is right an error of slap:D
Sid-Ali
Sid-Ali
Posts: 10
Joined: Thu Dec 29, 2005 6:27 am

Post by Sid-Ali »

Wouldn't Shine have you an answer?
Sid-Ali
Post Reply