circle radius randomization fix

This commit is contained in:
Blue 2018-11-19 11:02:38 +03:00
parent c1bea776b2
commit 57c642ca06
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Circle extends Shape {
static randomOptions() {
let opts = super.randomOptions();
opts.r = Math.floor(Math.random() * (this.maxY / 2 - opts.x));
opts.r = Math.floor(Math.random() * (this.maxY / 2));
return opts;
}