Skip to content

Commit eeff047

Browse files
author
Lauren McCarthy
committed
returning p5 from circle and square closes #3632
1 parent 7ebfcce commit eeff047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/shape/2d_primitives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ p5.prototype.circle = function() {
294294
var args = Array.prototype.slice.call(arguments, 0, 2);
295295
args.push(arguments[2]);
296296
args.push(arguments[2]);
297-
this.ellipse.apply(this, args);
297+
return this.ellipse.apply(this, args);
298298
};
299299

300300
/**
@@ -576,7 +576,7 @@ p5.prototype.rect = function() {
576576
* 55x55 white square with black outline and rounded edges of different radii.
577577
*/
578578
p5.prototype.square = function(x, y, s, tl, tr, br, bl) {
579-
this.rect(x, y, s, s, tl, tr, br, bl);
579+
return this.rect(x, y, s, s, tl, tr, br, bl);
580580
};
581581

582582
/**

0 commit comments

Comments
 (0)