File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -751,6 +751,11 @@ p5.prototype.line = function(...args) {
751751 *
752752 * background(200);
753753 *
754+ *
755+ * // Making point to 5 pixels
756+ * strokeWeight(5);
757+ *
758+ *
754759 * // Top-left.
755760 * point(30, 20);
756761 *
@@ -777,6 +782,11 @@ p5.prototype.line = function(...args) {
777782 *
778783 * background(200);
779784 *
785+ *
786+ * // Making point to 5 pixels.
787+ * strokeWeight(5);
788+ *
789+ *
780790 * // Top-left.
781791 * point(30, 20);
782792 *
@@ -807,6 +817,11 @@ p5.prototype.line = function(...args) {
807817 *
808818 * background(200);
809819 *
820+ *
821+ * // Making point to 5 pixels.
822+ * strokeWeight(5);
823+ *
824+ *
810825 * // Top-left.
811826 * let a = createVector(30, 20);
812827 * point(a);
Original file line number Diff line number Diff line change @@ -634,8 +634,8 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
634634 }
635635 } ;
636636
637- this . pointSize = 5.0 ; //default point size
638637 this . curStrokeWeight = 1 ;
638+ this . pointSize = this . curStrokeWeight ;
639639 this . curStrokeCap = constants . ROUND ;
640640 this . curStrokeJoin = constants . ROUND ;
641641
You can’t perform that action at this time.
0 commit comments