Category:World

Chooses a color randomly. Colors in Sprite Lab are created by mixing different amounts of red, green, and blue light. Over 16 million colors are possible! This block can be used to change the color of the background or a sprite randomly.

Examples

Example 1

Change the color of a sprite repeatedly when it is clicked.

Example 2

Change the background color randomly when the sprite is clicked.

Found a bug in the documentation? Let us know at documentation@code.org