java.lang.ObjectParticle
LineParticle
FunkyParticle
public class FunkyParticle
This Particle is drawn as a line and it moves bizarrely.
| Constructor Summary | |
|---|---|
FunkyParticle(double hue,
double startX,
double startY)
Constructor that lets you determine color and start position. |
|
| Method Summary | |
|---|---|
void |
takeOneStep()
Move this Particle one frame's worth of movement. |
| Methods inherited from class LineParticle |
|---|
drawSelf |
| Methods inherited from class Particle |
|---|
getColor, getTimesMoved, getXPosition, getXVelocity, getYPosition, getYVelocity, setXPosition, setXVelocity, setYPosition, setYVelocity |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunkyParticle(double hue,
double startX,
double startY)
hue - A number from 0 to 1 that specifies desired hue of the
ParticlestartX - The starting x coordinatestartY - The starting y coordinate| Method Detail |
|---|
public void takeOneStep()
takeOneStep in class Particle