|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vormplus.shapeLib.BasicShape
org.vormplus.shapeLib.stars.Star
public class Star
Field Summary | |
---|---|
float |
innerRadius
|
int |
numSpikes
|
float |
outerRadius
|
Constructor Summary | |
---|---|
Star(processing.core.PApplet _p)
Creates a Star object |
Method Summary | |
---|---|
void |
render()
Renders the star to the screen. |
Star |
setInnerRadius(float r)
Sets the inner radius for the star. |
Star |
setNumSpikes(int _numSpikes)
|
Star |
setOuterRadius(float r)
Sets the outer radius for the star. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float innerRadius
public float outerRadius
public int numSpikes
Constructor Detail |
---|
public Star(processing.core.PApplet _p)
_p
- Reference to the PApplet object. Normally use 'this'Method Detail |
---|
public Star setNumSpikes(int _numSpikes)
public Star setInnerRadius(float r)
r
- Inner radius for the star.public Star setOuterRadius(float r)
r
- Outer radius for the star.public void render()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |