If calculated dot diameter is smaller than minDotSize, set to minDotSize

This commit is contained in:
mattmcw 2021-12-01 13:58:37 -05:00
parent 36928c1eb9
commit 0ccd0643f3
1 changed files with 3 additions and 0 deletions

View File

@ -1313,6 +1313,9 @@ void draw () {
if (v < cutoffScaled) {
dotDiam = (config.maxDotSize - v * dotScale) * config.canvasScalar;
if (dotDiam < config.minDotSize) {
dotDiam = config.minDotSize;
}
canvas.ellipse(px, py, dotDiam, dotDiam);
if (config.fill) {
hatchLines = fillCircle(px, py, dotDiam, 45.0, config.line * config.canvasScalar);