SPACE.LA
◀ music select
personal / experiment / archived

Hue

A small canvas colour-picker experiment that reads the pixel colour under the cursor and shows its hex value.

BPM
151
GRADE
C
LEVEL
7
RELEASES
0
YEARS
2016–2017

Reading Pixels Off A Canvas

Hue started in November 2016 as a color picker: load an image into a canvas, track the mouse, read the RGB under the cursor and convert it to hex. About forty lines, with a findPos walking offsetParent and an rgbToHex with a bit shift in it.

The picker worked, and by mid January 2017 I'd moved on.

history

  1. archived