Map & Random

Random lines pattern

Map:

Map converts the the original range to a new range. The map() takes five parameters, which are value , original minimum value , original maximum value, new minimum value and new maximum value. e.g.

map(mouseX, 0, width, 100, 500);

coloured background coloured background coloured background

Random:

The random() takes two parameters minimum and maximum value. e.g.

random(2, 10);

coloured background coloured background

Continue Reading

3D Shapes

Learn More

Translate

Learn More