mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Brush phase 3a (owner-approved brush overhaul): - Every stroke point now carries a time (`timeMs`). egui's pointer events have none, so a frame's samples are spread evenly between the previous point and the frame time. Speed spacing, airbrush Build-up and Stroke Catch-Up worked from scripts but never from the canvas, because every point had time 0. The live stroke and the commit get the same times. - A stroke started on the press takes its moves from the press on. The moves before egui recognised a drag (its 6 pt click distance) were dropped, which gave every stroke a straight start and lost the pen's pressure ramp-in. - Smoothing pulls by stroke time (16 ms steps, fractional below that), not once per input event, so a 1000 Hz mouse and a 60 Hz pen feel the same. Without Stroke Catch-Up a paused pointer stops the brush, as in Photoshop. - A pointer held still keeps the stroke's clock running only while the stroke changes with time (airbrush Build-up, or smoothing still catching up): it repeats the held point every 16 ms and asks for repaints, then goes idle.