| Modifier and Type | Field and Description |
|---|---|
float |
theta
The angle of the pen in radians.
|
float |
width
The width of this stroke in pixels.
|
| Constructor and Description |
|---|
CalligraphyStroke(float width)
Create a simple CalligraphyStroke with an angle of 3*pi/4.
|
CalligraphyStroke(float width, float angle)
Creates a new CalligraphyStroke
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
createStrokedShape(Shape
Creates the calligraphic outline of the argument shape.
|
float |
getTheta()
Returns the angle of the pen (in radians).
|
float |
getWidth()
Returns the width of this stroke.
|
public final float width
public final float theta
public CalligraphyStroke(float width)
width - the width of the stroke (in pixels).
public CalligraphyStroke(float width,
float angle)
width - the width of the pen (in pixels)
angle - the angle of the pen (in radians)