I made this artwork my doing simple coding such as making circles, rectangles, and lines. I created this because I thought making a pattern would be simple with shapes. During this activity I learned how to change color of shapes. I used Javascript to make this shape. This is a pattern that I simply made. To reach this product I did lots of experimenting on this pattern. Khan academy's lessons taught me how to use this code well to create this and this is the code I did to make this possible.
fill(153, 0, 255); rect(100,100,100,100) ; //rectangle fill(153, 0, 255); rect(100,200,100,100) ; //rectangle fill(153, 0, 255); rect(100,100,200,100) ; //rectangle fill(153, 0, 255); rect(100,100,100,100) ; //rectangle fill(153, 0, 255); rect(200,200,100,100) ; //rectangle fill(0, 255, 38); rect(0,100,100,100) ; //rectangle fill(0, 255, 38); rect(300,100,100,100) ; //rectangle fill(0, 255, 38); rect(300,200,100,100) ; //rectangle fill(0, 255, 38); rect(0,200,100,100) ; //rectangle fill(0, 255, 38); rect(100,300,100,100) ; //rectangle fill(0, 255, 38); rect(200,300,100,100) ; //rectangle fill(153, 0, 255); rect(0,300,100,100) ; //rectangle fill(153, 0, 255); rect(300,300,100,100) ; //rectangle fill(0, 255, 38); rect(100,0,100,100) ; //rectangle fill(153, 0, 255); rect(0,0,100,100) ; //rectangle fill(0, 255, 38); rect(200,0,100,100) ; //rectangle fill(153, 0, 255); rect(300,0,100,100) ; //rectangle fill(0, 213, 255); ellipse(200,200,100,100) ; //circle fill(255, 0, 153); ellipse(300,200,100,100) ; //circle fill(255, 0, 153); ellipse(200,300,100,100) ; //circle fill(255, 0, 153); ellipse(100,200,100,100) ; //circle fill(0, 213, 255); ellipse(100,300,100,100) ; //circle fill(0, 213, 255); ellipse(300,300,100,100) ; //circle fill(255, 0, 153); ellipse(200,100,100,100) ; //circle fill(0, 213, 255); ellipse(300,100,100,100) ; //circle fill(0, 213, 255); ellipse(100,100,100,100) ; //circle strokeWeight(20) ; line(0,0,400,400) ; line(0,400,400,0) ; line(100,400,100,0) ; line(200,400,200,0) ; line(300,400,300,0) ; line(0,300,400,300) ; line(100,400,300,0) ; line(300,400,100,0) ; line(0,200,100000,0) ; line(0,100,100000,0) ;
0 Comments
Leave a Reply. |
Archives
May 2019
Categories |