examples

color-darker.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
repeat(2, (row) => {
  let size = 15

  let y = 150 + row * (display.height / 2)

  repeat(3, (col) => {
    let x = 150 + col * (display.width / 3)

    var initColor = color.hsb(random.num(0, 359), 55, 100)

    repeat(10, (i) => {
      let c = display.circle(x, y, 7.5 * ((i+1) * 2))
      c.color = initColor.darker(i)
    })
  })
})