draw outer frame
uses a thick pen size to draw a black rectangle of the size you want for your work of art.fill with random color
sets sprite inside that rectangle, sets a random color, and uses Snap!'s fill
block to color the rectangle.repeat
's number (yourself) to say how many colorful rectangles. go to random location
could use go to x: y:
.set height
and set width
should use pick random
, but with limits based on Sprite's location, so the colorful rectangles fit in the frame. This script uses two blocks that you may not have used before. When you draw a rectangle with draw rectangle
, you will need to give it values for the height and width. The script variables
block tells the computer it must keep track of two variables, and it gives those variables the name you want them to have. The set
block lets you set the values of those variables. In this case, you'll have to write some code that gives them reasonable values that change randomly, but don't run over the edge of the outer frame.