Processing provides a method named line() to draw a line on the screen. This code draws a white 10 pixel line on black background.
void setup() {
size(500, 500);
background(0);
stroke(255);
strokeWeight(10);
}
void draw() {
line(0, 0, 500, 500);
}
The signature of m...