anar
Class RenderPtShape
java.lang.Object
anar.RenderP5
anar.RenderPt
anar.RenderPtShape
- All Implemented Interfaces:
- Render
- Direct Known Subclasses:
- RenderPtEllipse, RenderPtShapeConstant, RenderPtShapeOriented
public class RenderPtShape
- extends RenderPt
Render a point like the given shape. If no shape are defined, the shape is a
circle by default.
- See Also:
RenderPtShapeOriented
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultShape
public static Face defaultShape
shape
public Face shape
- Shape is the displayed face for each points.
RenderPtShape
public RenderPtShape()
RenderPtShape
public RenderPtShape(AColor c1,
AColor c2)
RenderPtShape
public RenderPtShape(Face shape)
RenderPtShape
public RenderPtShape(Face shape,
AColor c1,
AColor c2)
RenderPtShape
public RenderPtShape(AColor c)
- Parameters:
c -
setSz
public void setSz(float sz)
- Change size of displayed points.
- Parameters:
sz -
getAccuracy
public float getAccuracy()
- change the accuracy of points displayed. (Number of sides)
- Returns:
- the accuracy
setAccuracy
public void setAccuracy(int accuracy)
- change the accuracy of points displayed. (Number of sides)
- Parameters:
accuracy - the accuracy to set
getShape
public Face getShape()
- Returns:
- the shape
setShape
public RenderPtShape setShape(Face shape)
- Parameters:
shape - the shape to set
draw
public void draw(Pt p)
- Specified by:
draw in class RenderPt
stroke
public void stroke(AColor color)
fill
public void fill(AColor color)