Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,11 @@ p5.prototype.line = function(...args) {
*
* background(200);
*
*
* // Making point to 5 pixels
* strokeWeight(5);
*
*
* // Top-left.
* point(30, 20);
*
Expand All @@ -777,6 +782,11 @@ p5.prototype.line = function(...args) {
*
* background(200);
*
*
* // Making point to 5 pixels.
* strokeWeight(5);
*
*
* // Top-left.
* point(30, 20);
*
Expand Down Expand Up @@ -807,6 +817,11 @@ p5.prototype.line = function(...args) {
*
* background(200);
*
*
* // Making point to 5 pixels.
* strokeWeight(5);
*
*
* // Top-left.
* let a = createVector(30, 20);
* point(a);
Expand Down
2 changes: 1 addition & 1 deletion src/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
}
};

this.pointSize = 5.0; //default point size
this.curStrokeWeight = 1;
this.pointSize = this.curStrokeWeight;
this.curStrokeCap = constants.ROUND;
this.curStrokeJoin = constants.ROUND;

Expand Down