Skip to content
Open
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
43 changes: 26 additions & 17 deletions core/src/processing/core/PShape.java
Original file line number Diff line number Diff line change
Expand Up @@ -2158,6 +2158,15 @@ public PVector getVertex(int index) {
return getVertex(index, null);
}

public float[] getVertexData(int index)
{
return vertices[index];
}

public PMatrix getMatrix()
{
return matrix;
}

/**
* @param vec PVector to assign the data to
Expand Down Expand Up @@ -2387,14 +2396,14 @@ public void setFill(boolean fill) {
/**
* ( begin auto-generated from PShape_setFill.xml )
*
* The <b>setFill()</b> method defines the fill color of a <b>PShape</b>.
* This method is used after shapes are created or when a shape is defined explicitly
* (e.g. <b>createShape(RECT, 20, 20, 80, 80)</b>) as shown in the above example.
* When a shape is created with <b>beginShape()</b> and <b>endShape()</b>, its
* attributes may be changed with <b>fill()</b> and <b>stroke()</b> within
* <b>beginShape()</b> and <b>endShape()</b>. However, after the shape is
* created, only the <b>setFill()</b> method can define a new fill value for
* the <b>PShape</b>.
* The <b>setFill()</b> method defines the fill color of a <b>PShape</b>.
* This method is used after shapes are created or when a shape is defined explicitly
* (e.g. <b>createShape(RECT, 20, 20, 80, 80)</b>) as shown in the above example.
* When a shape is created with <b>beginShape()</b> and <b>endShape()</b>, its
* attributes may be changed with <b>fill()</b> and <b>stroke()</b> within
* <b>beginShape()</b> and <b>endShape()</b>. However, after the shape is
* created, only the <b>setFill()</b> method can define a new fill value for
* the <b>PShape</b>.
*
* ( end auto-generated )
*
Expand Down Expand Up @@ -2543,14 +2552,14 @@ public void setStroke(boolean stroke) {
/**
* ( begin auto-generated from PShape_setStroke.xml )
*
* The <b>setStroke()</b> method defines the outline color of a <b>PShape</b>.
* This method is used after shapes are created or when a shape is defined
* explicitly (e.g. <b>createShape(RECT, 20, 20, 80, 80)</b>) as shown in
* the above example. When a shape is created with <b>beginShape()</b> and
* <b>endShape()</b>, its attributes may be changed with <b>fill()</b> and
* <b>stroke()</b> within <b>beginShape()</b> and <b>endShape()</b>.
* However, after the shape is created, only the <b>setStroke()</b> method
* can define a new stroke value for the <b>PShape</b>.
* The <b>setStroke()</b> method defines the outline color of a <b>PShape</b>.
* This method is used after shapes are created or when a shape is defined
* explicitly (e.g. <b>createShape(RECT, 20, 20, 80, 80)</b>) as shown in
* the above example. When a shape is created with <b>beginShape()</b> and
* <b>endShape()</b>, its attributes may be changed with <b>fill()</b> and
* <b>stroke()</b> within <b>beginShape()</b> and <b>endShape()</b>.
* However, after the shape is created, only the <b>setStroke()</b> method
* can define a new stroke value for the <b>PShape</b>.
*
* ( end auto-generated )
*
Expand Down Expand Up @@ -3442,4 +3451,4 @@ protected void colorCalcARGB(int argb, float alpha) {
calcAlpha = (calcAi != 255);
}

}
}