public class BitmapTurtleFactory extends TurtleFactory
Constructor and Description |
---|
BitmapTurtleFactory(java.awt.image.BufferedImage turtleImg) |
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
turtleImage(java.awt.Color color,
double angle,
int w,
int h)
Generates the shape of the turtle with given color,
angle (in radian, zero to north, counterclockwise), width and height in pixels.
|
public BitmapTurtleFactory(java.awt.image.BufferedImage turtleImg)
public java.awt.Image turtleImage(java.awt.Color color, double angle, int w, int h)
turtleImage
in class TurtleFactory