getScreenWidth
getScreenWidth()
Returns the width of the screen, in pixels.
This value will always be a fixed value, regardless of if the screen has been scaled or not.
// Draws a gradient across the screen
fill( :white )
width = getScreenWidth()
setColor( :pink, 1 )
width.times() do |x|
setAlpha( x / width )
drawLine( x, 0, x, getScreenHeight() )
endSee Also
A link which will reset your password has been sent to your email address.
This link will be active for up to 24 hours.