More generally -- for a line between points x1,y1 and x2,y2 the line is diagonal if x1 != x2 (then it would be horizontal) and y1 != y2 (then it would be vertical).
Thank you Jeremy. I am very new to Processing (two days only). I have signed up for the FutureLearn Creative Coding course so getting familiar with the software to be used.
Answers
Answer will be most helpful
@walterpump --
Look at the reference page for the
line()
function. The very first example is a diagonal line.More generally -- for a line between points x1,y1 and x2,y2 the line is diagonal if x1 != x2 (then it would be horizontal) and y1 != y2 (then it would be vertical).
Thank you Jeremy. I am very new to Processing (two days only). I have signed up for the FutureLearn Creative Coding course so getting familiar with the software to be used.
@walterpump -- good luck and enjoy the course! Use the reference and examples, and ask questions here in the forum when you get stuck.
Good luck. Nonetheless, I find the Processing tutorials very concise and hence prefer them - you can learn a lot in very little time.