hold option to pick up colors

Hunter
Friday, April 17th, 2026 at 9:55 AM

index.html+3-3
readme.md+7-9

index.html
580  	window.addEventListener('mousedown', (e) => {
581  		if (e.button !== 0) return;
582  		e.preventDefault();
    -		if (e.shiftKey) {
583 +		if (e.altKey) {
584  			picking = true;
585  			pickAt(curX, curY);
586  			requestDraw();

637  				dragRStart = r; dragGStart = g; dragBStart = b;
638  			}
639  		}
    -		// releasing shift mid-pick-drag -> seamlessly switch to painting
    -		if (e.key === 'Shift' && picking) {
640 +		// releasing alt mid-pick-drag -> seamlessly switch to painting
641 +		if ((e.key === 'Alt' || e.key === 'AltGraph') && picking) {
642  			picking = false;
643  			painting = true;
644  			lastPaintX = curX;
readme.md
 4  
 5   ## controls
 6   - click and drag to make marks
   - - hold `shift` and move up/down to resize the brush
   - - hold `⌘` and move up/down to change the shape of the brush
 7 + - hold `shift` and move your cursor up/down to resize the brush
 8 + - hold `⌘` and move your cursor up/down to change the shape of the brush
 9   - hold any of the ${{\color{Red}{\textsf{R}}}}\$, ${{\color{Green}{\textsf{G}}}}\$, and/or ${{\color{CornflowerBlue}{\textsf{B}}}}\$
   - keys and move up/down to change the ${{\color{Red}{\textsf{Redness}}}}\$, ${{\color{Green}{\textsf{Greenness}}}}\$, and/or ${{\color{CornflowerBlue}{\textsf{Blueness}}}}\$ of the active color
   - - hold `shift` and click anywhere to pick up the color underneath the brush
   -  	- you can also hold `shift` then click and drag to scrub for colors
10 + keys and move your cursor up/down to change the ${{\color{Red}{\textsf{Redness}}}}\$, ${{\color{Green}{\textsf{Greenness}}}}\$, and/or ${{\color{CornflowerBlue}{\textsf{Blueness}}}}\$ of the active color
11 + - hold `option` and click anywhere to pick up the color underneath the brush
12 +  	- you can also hold `option` then click and drag to scrub for colors
13   - pinch with two fingers to zoom in or out
   - - drag with two fingers to pan the viewport
   -
   -
   - <!-- (or, when using a mouse, scroll the scrollwheel to pan vertically, or use shift + scrollwheel to pan horizontally) -->
14 + - drag with two fingers to pan the viewport