Skip to content

Commit 7253cb5

Browse files
committed
correct search area size. Fixes #8
1 parent 8f5d4f4 commit 7253cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client-data/tools/eraser/eraser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
if (erasing) {
6565
// get points all within a circle of a given radius
6666
// https://stackoverflow.com/a/26802146
67-
var radius = Tools.getSize(),
67+
var radius = Tools.getSize()/2,
6868
r2 = radius*radius;
6969
for (var dx = -radius; dx <= radius; dx++) {
7070
var h = Math.sqrt(r2 - dx * dx) | 0;

0 commit comments

Comments
 (0)