java.lang.Object Particle BoundsParticle TeleportParticle
public class TeleportParticle
This particle warps to the other side of the screen whenever it goes past an edge.
Constructor Summary | |
---|---|
TeleportParticle(double hue,
double startX,
double startY,
int boundsX,
int boundsY)
Constructor that lets you determine color, start position, and size of window. |
Method Summary | |
---|---|
void |
takeOneStep()
Move this Particle one frame's worth of movement. |
Methods inherited from class BoundsParticle |
---|
getBoundsX, getBoundsY |
Methods inherited from class Particle |
---|
drawSelf, 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 TeleportParticle(double hue, double startX, double startY, int boundsX, int boundsY)
hue
- A number from 0 to 1 that specifies desired hue of the
ParticlestartX
- The starting x coordinatestartY
- The starting y coordinateboundsX
- the maximum x-coordinate of the screenboundsY
- the maximum y-coordinate of the screenMethod Detail |
---|
public void takeOneStep()
takeOneStep
in class Particle