processing-website icon indicating copy to clipboard operation
processing-website copied to clipboard

Add `strokeWeight` to reference in the reference of `point_`

Open SharathKumarK06 opened this issue 10 months ago • 0 comments

Select the type of content error.

Other content error (please specify)

Section

Reference

Location of the error

https://github.com/processing/processing-website/blob/dae935bea77b1353ff8824f56fc8fe01096c942e/content/references/translations/en/processing/point_.json#L3

Describe the error

I don't know if it is intended, but it would be nice to make strokeWeight() function bold in description section and add strokeWeight() function in related section

Suggested correction

  1. Change description to:
  "description": "Draws a point, a coordinate in space at the dimension of one pixel. The first\n parameter is the horizontal value for the point, the second value is the\n vertical value for the point, and the optional third value is the depth\n value. Drawing this shape in 3D with the <b>z</b> parameter requires the P3D\n parameter in combination with <b>size()</b> as shown in the above example.\n <br/>\n <br/>\n Use <b>stroke()</b> to set the color of a <b>point()</b>. <br/>\n <br/>\n Point appears round with the default <b>strokeCap(ROUND)</b> and square with\n <b>strokeCap(PROJECT)</b>. Points are invisible with <b>strokeCap(SQUARE)</b>\n (no cap). <br/>\n <br/>\n Using point() with <b>strokeWeight(1)</b> or smaller may draw nothing to the screen,\n depending on the graphics settings of the computer. Workarounds include\n setting the pixel using <b>set()</s> or drawing the point using either\n <b>circle()</b> or <b>square()</b>.",
  1. Change related to:
  "related": ["stroke_", "strokeWeight_"],

Language

json

Screenshots or references

No response

Additional context

No response

SharathKumarK06 avatar Feb 18 '25 09:02 SharathKumarK06