Skip to content

Commit 7c6a472

Browse files
author
Lauren McCarthy
committed
adding comment to make stroke fill swap in point clear
1 parent ae68b10 commit 7c6a472

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/p5.Renderer2D.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ p5.Renderer2D.prototype.point = function(x, y) {
511511
var f = this._getFill();
512512
x = Math.round(x);
513513
y = Math.round(y);
514+
// swapping fill color to stroke and back after for correct point rendering
514515
this._setFill(s);
515516
if (ctx.lineWidth > 1) {
516517
ctx.beginPath();

0 commit comments

Comments
 (0)