xxxxxxxxxx
34
/*******************************************************
https://editor.p5js.org/MsBrandonCS/sketches/DsysAgJfu
by MsBrandonCS
*******************************************************/
/*****
* After doing a drawing meditation, let's practice coding with lines.
* You might start by drawing different lines all over the screen to
* learn about how the command works and how the coordinates of the canvas
* operate.
* You might also challenge yourself to draw an optical illusion
* using lines: https://www.google.com/search?q=optical+illusion+straight+lines+look+curved&safe=strict&tbm=isch&source=iu&ictx=1&fir=ZSwBqVEZqW-d8M%253A%252CaL9U7WuGy4ydWM%252C_&usg=AI4_-kQ9NgLmsqrCiJR7zSDxZQZSUUZgdQ&sa=X&ved=2ahUKEwiMk9-i4rbgAhVIOq0KHZ5xAqEQ9QEwBHoECAAQDA#imgrc=ZSwBqVEZqW-d8M:
*
* A version of the optical illusion appears below.
*/
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
text("ce sont des droites courbes !", 100, 100) ;
// Do you notice any patterns here?
line(0, 0, 50, 400);
line(0, 50, 100, 400);
line(0, 100, 150, 400);
line(0, 150, 200, 400);
line(0, 200, 250, 400);
line(0, 250, 300, 400);
line(0, 300, 350, 400);
line(0, 350, 400, 400);
}