Returns this number taken to the power of 2.
It is essentially the same as just multiplying the number by it's self.
// n is set to 25
n = 5.square()Draws lots of squares, in the centre of the screen. Their size is based on the square of the loop.
onEachFrame() do |delta|
fill( :white )
setColor( :blue, 0.05 )
25.times() do |i|
size = i.square()
fillRect(
getScreenWidth()/2, getScreenHeight()/2,
size, size,
true
)
end
end