ianhi_processing/NatureOfCode/The-Nature-of-Code-Examples-master/Processing/chp8_fractals/CantorSetArrayList/Line.pde
// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com

// Cantor line is a simple horizontal line with a starting point
// and length

class CantorLine {
  float x,y;
  float len;
 
  CantorLine(float x_, float y_, float len_) {
    x = x_;
    y = y_;
    len = len_;
  } 
  
  void display() {
    stroke(0);
    line(x,y,x+len,y); 
  }
  
}
