| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### new
Examples |  |
    HLine h1 = new HLine();
    float[] speeds = new float[3];
    float ypos;

    void setup() {
      size(200, 200);
      speeds[0] = 0.1;
      speeds[1] = 2.0;
      speeds[2] = 0.5;
    }

    void loop() {
      ypos += speeds[int(random(3))];
      if (ypos > width) {
        ypos = 0;
      }
      h1.update(ypos);
    }

    class HLine {
      void update(float y) {
        line(0, y, width, y);
      }
    }
Description |  | Dynamically creates an object.
Syntax |  |
    new
Usage |  | Web & Application

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |