preset color buttons rework + curve smoothing
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 9s
Python / lint-format (pull_request) Successful in 17s
Python / test (pull_request) Successful in 30s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m6s

This commit is contained in:
2026-06-20 13:24:47 +02:00
parent ca1243f9c7
commit fc9be754fd
6 changed files with 103 additions and 49 deletions
@@ -28,8 +28,11 @@ static void drawStroke(
painter->beginPath();
painter->moveTo(points[0]);
for (qsizetype i = 1; i < points.size(); ++i)
painter->lineTo(points[i]);
for (int i = 1; i < points.size() - 1; ++i) {
QPointF mid = (points[i] + points [i + 1]) / 2;
painter->quadraticCurveTo(points[i], mid);
}
painter->lineTo(points.last());
painter->stroke();
}