| Constructor and Description |
|---|
BrushStroke(float width, float thickness)
Creates a new BrushStroke using the default angle (pi/2) and a random seed of zero.
|
BrushStroke(float width, float thickness, float theta, long randomSeed)
Creates a new BrushStroke.
|
BrushStroke(float width, float thickness, long randomSeed)
Creates a new BrushStroke using the default angle (pi/2).
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
createStrokedShape(Shape
|
long |
getRandomSeed()
|
float |
getTheta()
|
float |
getThickness()
|
float |
getWidth()
|
public BrushStroke(float width,
float thickness,
long randomSeed)
width - the width (in pixels) of this stroke
thickness - a float between zero and one indicating how "thick" this stroke should be.
randomSeed - the random seed for this stroke.
public BrushStroke(float width,
float thickness)
width - the width (in pixels) of this stroke
thickness - a float between zero and one indicating how "thick" this stroke should be.
public BrushStroke(float width,
float thickness,
float theta,
long randomSeed)
width - the width (in pixels) of this stroke
thickness - a float between zero and one indicating how "thick" this stroke should be.
theta - the angle stroke is drawn at to the original path. An angle of (pi/2) is considered "normal". A value of 0 or pi is very extreme.
randomSeed - the random seed for this stroke.