Changing the color of the first or second pixel

Hi @Wildersrobles,
See this post for discussion and code:

The idea is that you’d check the index in the render function and do something different. e.g.

export function render(index) {
  if (index < 2) {
    hsv(.75,1,1);
  } else {
    v = pixels[index]
    v = v*v*v
    hsv(.0, 1, v)
  }
}
1 Like