Happy new year

[processing]
class Tapis1 {

float x;
float v;
float a;

Tapis1() {
v = 1;
a = 0;
x = 0;
}

void draw() {
stroke(255);
noFill();
x -= v;
line(x, 0, x, height/2);
if (x<=-1) x = width-1; } } class Tapis2 { float x, y; float v; float a; Tapis2() { v = 1; y = 0; a = 0; x = -100; } void draw() { stroke(255); noFill(); x += v; line(x, height/2, x, height); if (x>=width) x = 0;
}
}

PFont din;

Tapis1[] tapis1 = new Tapis1[100];
Tapis2[] tapis2 = new Tapis2[100];

float transp;

void setup() {

size(600,300);
din = loadFont(“din.vlw”);
textAlign(CENTER);
textFont(din, 24);

for (int i=0; iMay the year 2012 be full of joy, health, success, prosperity, projects, lights, colors, pixels, emotions, perceptions, lines, keyboard keys, screens, sounds, squares, programs, events, 0s and 1s, etc. Whatever, happy new year !

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.