Skip to content

Commit b084e18

Browse files
authored
Merge pull request #793 from jeremydouglass/patch-strokecap-point
Document strokeCap setting for square points, invisible points problem
2 parents 10a1cc2 + 930ba32 commit b084e18

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

content/api_en/point.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ point(30, 75, -50);
3535
Draws a point, a coordinate in space at the dimension of one pixel. The first parameter is the horizontal value for the point, the second value is the vertical value for the point, and the optional third value is the depth value. Drawing this shape in 3D with the <b>z</b> parameter requires the P3D parameter in combination with <b>size()</b> as shown in the above example.
3636
<br /><br />
3737
Use <b>stroke()</b> to set the color of a <b>point()</b>.
38+
<br /><br />
39+
Point appears round with the default <b>strokeCap(ROUND)</b> and square with <b>strokeCap(PROJECT)</b>. Points are invisible with <b>strokeCap(SQUARE)</b> (no cap).
3840
]]></description>
3941

4042
</root>

content/api_en/strokeCap.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ line(20, 70, 80, 70);
2323

2424
<description><![CDATA[
2525
Sets the style for rendering line endings. These ends are either squared, extended, or rounded, each of which specified with the corresponding parameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND.
26+
<br /><br />
27+
To make <b>point()</b> appear square, use <b>strokeCap(PROJECT)</b>. Using <b>strokeCap(SQUARE)</b> (no cap) causes points to become invisible.
2628
]]></description>
2729

2830
</root>

0 commit comments

Comments
 (0)