Skip to content

Update PGraphics.java: fix typos in documentation #1034

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 4 commits into from
Apr 25, 2025
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: 1 addition & 1 deletion core/src/processing/core/PApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ void handleSettings() {
* Processing Development Environment (PDE). For example, when
* using the Eclipse code editor, it's necessary to use
* <b>settings()</b> to define the <b>size()</b> and
* <b>smooth()</b> values for a sketch.</b>.
* <b>smooth()</b> values for a sketch.
* <br /> <br />
* The <b>settings()</b> method runs before the sketch has been
* set up, so other Processing functions cannot be used at that
Expand Down
10 changes: 5 additions & 5 deletions core/src/processing/core/PGraphics.java
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ protected void curveVertexSegment(float x1, float y1, float z1,
* <br />
* Using point() with strokeWeight(1) or smaller may draw nothing to the screen,
* depending on the graphics settings of the computer. Workarounds include
* setting the pixel using <b>set()</s> or drawing the point using either
* setting the pixel using <b>set()</b> or drawing the point using either
* <b>circle()</b> or <b>square()</b>.
*
* @webref shape:2d primitives
Expand Down Expand Up @@ -3559,8 +3559,8 @@ public float curvePoint(float a, float b, float c, float d, float t) {

/**
* Calculates the tangent of a point on a curve. There's a good definition
* of <em><a href="http://en.wikipedia.org/wiki/Tangent"
* target="new">tangent</em> on Wikipedia</a>.
* of <a href="http://en.wikipedia.org/wiki/Tangent"
* target="new"><em>tangent</em> on Wikipedia</a>.
*
* <h3>Advanced</h3>
* Code thanks to Dave Bollinger (Bug #715)
Expand Down Expand Up @@ -6252,7 +6252,7 @@ public float modelZ(float x, float y, float z) {
* <br /><br />
* The style information controlled by the following functions are included
* in the style:
* <b>fill()<b>, <b>stroke()</b>, <b>tint()</b>, <b>strokeWeight()</b>, <b>strokeCap()</b>,<b>strokeJoin()</b>,
* <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>, <b>strokeWeight()</b>, <b>strokeCap()</b>,<b>strokeJoin()</b>,
* <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>, <b>shapeMode()</b>, <b>colorMode()</b>,
* <b>textAlign()</b>, <b>textFont()</b>, <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>,
* <b>emissive()</b>, <b>specular()</b>, <b>shininess()</b>, <b>ambient()</b>
Expand Down Expand Up @@ -6439,7 +6439,7 @@ public PStyle getStyle(PStyle s) { // ignore
* <br />
* Using point() with strokeWeight(1) or smaller may draw nothing to the screen,
* depending on the graphics settings of the computer. Workarounds include
* setting the pixel using <b>set()</s> or drawing the point using either
* setting the pixel using <b>set()</b> or drawing the point using either
* <b>circle()</b> or <b>square()</b>.
*
* @webref shape:attributes
Expand Down