2D Primitive Shapes

This is a very primitive 2D drawing of an FC Barcelona supporter celebrating a goal. Messi just scored another goal and the supporter, elated, hands cheering, mouth gaping is shouting “GOOOOAAAALLLL”!

I used basic 2D attributes of JavaScript to create this drawing. I used:

ellipse() – to create his head, eyes and mouth.

rect() – was used to create the signature Barca blue and red striped jersey, his arms, legs and shorts. For the jersey, I drew a red rectangle then inserted the stripes by overlaying three blue rectangles.

triangle() – I used this attribute to create the definition of his shorts.

I used the background(), fill() and stroke() attributes to add the respective colors to the attire and body.  Using createCanvas(600,1500), I created the dimensions of the window.

Here is how my drawing progressed:

hw1_1 hw1_2 hw1_3

 

 

 

 

 

 

 

 

Here’s a peak of my code.

hw1_4My Barca supporter can be found here: http://www.nikitahuggins.com/Projects/ICM/Homework1/

 

30 thoughts on “2D Primitive Shapes”

  1. Blogging is my favorite reading medium, too. (Granted, I’m usually reading about sports, but it still counts as reading, right?) Those who do it well, like Jon, Glen, and the others here at Smart Blogger, are worth their weight in gold. 
    To be able to take a complicated concept and break it down into easily digestible blog posts that are the size of a small eBook is a skill for sure.
    카지노사이트

  2. I discovered your blog while traveling a search on quality blogs and your own concept.
    I’m passionate about blogging. It’s my favorite reading. Bloggers like you show a very original perspective regarding sometimes a media treats in a pasteurized and unattractive way.
    카지노사이트

  3. Going back to your text, I think it’s good for many bloggers and those who post more of their blog entries they enjoy, contribute more positively to the debate.
    But this is the scenario of the Brazilian political blogosphere. I think that in other countries the same thing should happen.
    카지노사이트

  4. Needed to send you the very little remark to be able to say thanks a lot over again on the precious strategies you have provided in this case. It was really strangely open-handed with you to make publicly precisely what many people would’ve offered for an ebook to get some money for themselves, notably now that you might have tried it in case you desired. These solutions in addition served to be the good way to know that other people online have the identical interest really like my personal own to learn more and more related to this matter. I am sure there are numerous more pleasant periods in the future for many who read carefully your site.

  5. I intended to create you a little note just to give thanks as before for the extraordinary solutions you have featured in this case. It was really shockingly open-handed with you to grant publicly just what many of us might have offered for an ebook to get some dough for themselves, mostly now that you might have tried it in case you desired. These secrets as well served to be the good way to fully grasp that other people online have the identical interest much like my personal own to learn more regarding this matter. I am sure there are numerous more pleasant periods in the future for many who read your site.

  6. I am only writing to make you understand what a remarkable experience our princess undergone viewing your webblog. She picked up some things, which included what it is like to possess an ideal teaching spirit to make the mediocre ones without difficulty master specified tortuous things. You undoubtedly surpassed readers’ expected results. Thanks for rendering those useful, trustworthy, revealing as well as unique tips on your topic to Mary.

  7. A lot of thanks for all your valuable hard work on this web page. Kim really likes getting into investigation and it’s really easy to understand why. Many of us know all of the dynamic medium you make invaluable steps on this web blog and as well as improve participation from people on that idea so our girl is certainly learning a lot of things. Have fun with the remaining portion of the new year. You are conducting a pretty cool job.

Leave a Reply

Your email address will not be published.