mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 08:26:28 +00:00
Windows had no screen color sampler, so the Color Picker's eyedropper button was gray and ui.sampleScreenColor returned an error there. The new sampler copies the virtual screen (every monitor, including ones at negative coordinates and at other display scales) and covers it with a borderless topmost window that shows the copy under a crosshair. A left click picks the copied pixel, read as sRGB. Escape, a click of another mouse button, Alt+F4 or switching to another window cancels. The window runs on its own thread, so the app keeps drawing, and the copy's size is checked before it is allocated. Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md and the ui.sampleScreenColor params text.