terrapin
Class Line

java.lang.Object
  extended by terrapin.Line

public class Line
extends java.lang.Object

Line class, stored by HistoryTurtle.

Author:
George Bashi, Ollie Glass

Field Summary
 int drawColor
          Colour to draw line in, as a colour created with PApplet.color(int, int, int).
 int fromX
          From location in x axis.
 int fromY
          From location in y axis.
 int toX
          To location in x axis.
 int toY
          To location in y axis.
 
Constructor Summary
Line(processing.core.PApplet applet, int fromX, int fromY, int toX, int toY, int drawColor)
          Create a new line.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromX

public int fromX
From location in x axis.


fromY

public int fromY
From location in y axis.


toX

public int toX
To location in x axis.


toY

public int toY
To location in y axis.


drawColor

public int drawColor
Colour to draw line in, as a colour created with PApplet.color(int, int, int).

Constructor Detail

Line

public Line(processing.core.PApplet applet,
            int fromX,
            int fromY,
            int toX,
            int toY,
            int drawColor)
Create a new line.

Parameters:
applet - PApplet to draw to.
fromX - from location in x axis.
fromY - from location in y axis.
toX - to location in x axis.
toY - to location in y axis.


processing library Terrapin by George Bashi and Ollie Glass. (c) 2007