THE GRAPHIC DESIGN BLOG OF A
A technology project I made recently was a self-portrait using Javascript on Khan Academy. I learned the commands for lots of shapes, colors, strokes, and much more. It was a fun project, but quite time-consuming and a little bit frustrating, at times. My shapes had to be positioned correctly and had to be the right size, for which I used numbers as coordinates. It was hard to guess the correct numbers, and I always had to go back and edit. Click here to check out the Khan Academy tutorials yourself! Here is my code:
background (150, 196, 245); //head fill(255, 244, 201); ellipse(200, 200,220,250); //eyes fill(0, 136, 209); ellipse(233,214,18,18); ellipse(167,214,18,18); //nose line(188,244,200,221); line(188,244,207,243); //mouth noFill(); arc(200, 250, 94, 74, 16, 164); //hair fill(255, 246, 145); stroke(255, 246, 145); rotate(-38); ellipse(43,192,152,68); rotate(69); ellipse(272,-22,162,68); rotate(56); ellipse(249,-97,190,-72); rotate(358); ellipse(258,-278,190,-72);
0 Comments
Leave a Reply. |
AuthorHello, my name is Mia. Look at my About Me page to learn more. Archives
November 2020
Categories
All
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. |