Closed codingbootcampseu closed 3 years ago
Hints
You can multiply a percentage value (i.e. .5 for 50%) with the maximum value of a color space (0 = black, 255 = white).
.5
// this will draw a background at 50% of the black and white color space background(255 * .5)
You can use the current mouse coordinates to calculate a percentage position a one axis.
// mouse y / canvas width mouseY / 400
leichter als gedacht
Hints
You can multiply a percentage value (i.e.
.5
for 50%) with the maximum value of a color space (0 = black, 255 = white).You can use the current mouse coordinates to calculate a percentage position a one axis.