Skip to content

Document strokeCap setting for square points, invisible points problem #793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2020
Merged
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
2 changes: 2 additions & 0 deletions content/api_en/point.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ point(30, 75, -50);
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.
<br /><br />
Use <b>stroke()</b> to set the color of a <b>point()</b>.
<br /><br />
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).
]]></description>

</root>
2 changes: 2 additions & 0 deletions content/api_en/strokeCap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ line(20, 70, 80, 70);

<description><![CDATA[
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.
<br /><br />
To make <b>point()</b> appear square, use <b>strokeCap(PROJECT)</b>. Using <b>strokeCap(SQUARE)</b> (no cap) causes points to become invisible.
]]></description>

</root>