SzabiSch / bootcamp-schedule

0 stars 0 forks source link

P5 Kata: Dimmer #63

Closed codingbootcampseu closed 3 years ago

codingbootcampseu commented 3 years ago

dimmer

Hints

You can multiply a percentage value (i.e. .5 for 50%) with the maximum value of a color space (0 = black, 255 = white).

// 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
SzabiSch commented 3 years ago

leichter als gedacht