circle radius randomization fix

This commit is contained in:
Blue 2018-11-19 11:02:38 +03:00
parent c1bea776b2
commit 57c642ca06

View File

@ -13,7 +13,7 @@ class Circle extends Shape {
static randomOptions() { static randomOptions() {
let opts = super.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; return opts;
} }