Skip to content

Commit 9fc82a8

Browse files
committed
Tweak scalingVector to make dots appear to be more circular instead of oval
1 parent 3c79a55 commit 9fc82a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/PenSkin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,10 @@ class PenSkin extends Skin {
371371
translationVector[1] = avgY + (alias / 4);
372372

373373
const scalingVector = __modelScalingVector;
374-
scalingVector[0] = diameter + alias;
375-
scalingVector[1] = length + diameter - (alias / 2);
374+
// Dots tend to be ovals that are longer on the y-axis, so we use a smaller alias
375+
// for the y value than for the x value to make dots more circular.
376+
scalingVector[0] = diameter + (alias / 2);
377+
scalingVector[1] = length + diameter - (alias / 6);
376378

377379
const radius = diameter / 2;
378380
const yScalar = (0.50001 - (radius / (length + diameter)));

0 commit comments

Comments
 (0)