commit 842681a25b7051cc4f7455bb4c01fc37427595bb
parent c1e6a44ebb8bd61d1a8d490978879f9bf49116a3
Author: Hunter
Date: Fri, 17 Apr 2026 09:55:05 -0400
hold option to pick up colors
Diffstat:
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/index.html b/index.html
@@ -580,7 +580,7 @@
window.addEventListener('mousedown', (e) => {
if (e.button !== 0) return;
e.preventDefault();
- if (e.shiftKey) {
+ if (e.altKey) {
picking = true;
pickAt(curX, curY);
requestDraw();
@@ -637,8 +637,8 @@
dragRStart = r; dragGStart = g; dragBStart = b;
}
}
- // releasing shift mid-pick-drag -> seamlessly switch to painting
- if (e.key === 'Shift' && picking) {
+ // releasing alt mid-pick-drag -> seamlessly switch to painting
+ if ((e.key === 'Alt' || e.key === 'AltGraph') && picking) {
picking = false;
painting = true;
lastPaintX = curX;
diff --git a/readme.md b/readme.md
@@ -4,14 +4,11 @@
## controls
- 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
+ - hold `shift` and move your cursor up/down to resize the brush
+ - hold `⌘` and move your cursor up/down to change the shape of the brush
- 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
+ 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
+ - hold `option` and click anywhere to pick up the color underneath the brush
+ - you can also hold `option` then click and drag to scrub for colors
- 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) -->
+ - drag with two fingers to pan the viewport
+\ No newline at end of file