I am glad to hear that.
And welcome to the forum, great to have you here!
Example 1
here is an example WITHOUT setup(), in so called static mode
size(640, 360); // Size should be the first statement
float y = 180;
background(0, 255, 0); // Set the background to Green
line(0, y,width, y);
line(100, y+66,width, y+66);
Example 2
and a complex Sketch with setup() and draw() which is a dynamic Sketch:
float y = 180;
// The statements in the setup() function
// run once when the program begins
void setup() {
size(640, 360); // Size should be the first statement in setup()
stroke(255); // Set stroke color to white
}
// The draw() function runs on and on
void draw() {
background(0); // Set the background to black
line(0, y, width, y);
y = y - 1;
if (y < 0) {
y = height;
}
}
Warm regards,
Chrisir