Skip to content

Commit e1c379a

Browse files
authored
Merge pull request #8291 from menacingly-coded/docsupdate
Updated point() examples for visible points.
2 parents 424d2e8 + 3bbde76 commit e1c379a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/shape/2d_primitives.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,10 @@ function primitives(p5, fn){
760760
* createCanvas(100, 100);
761761
*
762762
* background(200);
763-
*
763+
*
764+
* // Making point to 5 pixels
765+
* strokeWeight(5);
766+
*
764767
* // Top-left.
765768
* point(30, 20);
766769
*
@@ -786,6 +789,9 @@ function primitives(p5, fn){
786789
* createCanvas(100, 100);
787790
*
788791
* background(200);
792+
*
793+
* // Making point to 5 pixels.
794+
* strokeWeight(5);
789795
*
790796
* // Top-left.
791797
* point(30, 20);
@@ -816,6 +822,9 @@ function primitives(p5, fn){
816822
* createCanvas(100, 100);
817823
*
818824
* background(200);
825+
*
826+
* // Making point to 5 pixels.
827+
* strokeWeight(5);
819828
*
820829
* // Top-left.
821830
* let a = createVector(30, 20);

0 commit comments

Comments
 (0)