Brooshes: simple drawing program with a fun bug

A start on a simple drawing program:

https://gist.github.com/DolenzSong/ddafd3d3f018c2f5321a6981dfb5f63d

The color picker works by tapping on it and dragging your finger vertically or horizontally. Horizontal drags change the hue and vertical drags change the brightness and saturation. This excludes shades of gray as colors, but I’m okay with that for the moment.

Any way there’s a bug because I forgot to turn off the detecting of touches for drawing when you’re in color-picking mode, so if you tap on the color picker and then drag all around the canvas the color of the line will change as you draw. It’s kind of fun!

The color picker will also let you change stroke width, by the way. Double-tap on it and you’ll see a preview line above the picker. Drag up and down to change the width of the line, and strokeWidth changes along with it.