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/

 

156 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.

  8. Men’s passion is infinite, where common sense of human relations always comes from within the body, like a piece of suspicious enthusiasm. Click:rape.

  9. There is a principled difference between keeping chastity and abstinence. Is a fake doctor. Can enjoyment be achieved through promiscuity? Shouzhen is the patent of rightist religious elements? Click:Fuck you.

  10. Get up early in the morning and make love, exercise and supplement calcium. It’s good to take time out at noon to increase feelings. Call the bed before going to bed at night, tomorrow will be very strong. Get up in the middle of the night and have a fight to enhance immunity from catching a cold! Click:oral sex.

  11. ブランドスーパーコピー後払い,スーパーコピーブランド代引き.

  12. Greate article. Keep writing such kind of information on your page. I’m impressed by your site. I want to refer to my blog about Format sd card . The SD Memory Card Formatter does not format anything within the protected area in the SD/SDHC/SDXC Cards.

  13. When dogs are mating, they can’t be opened with sticks; when people are having sex, a little knock on the door outside can make them have no sexual interest. This is because animals only satisfy instinct, while human sex is full of rationality. Click:Gang rape.

  14. ブランドスーパーコピー後払い,スーパーコピーブランド代引き.

  15. Opposition to keeping chastity means that when your daughter wants to engage with other people, she will engage with others, and whoever she wants to engage with. This is how your wife is sexually free? Click:Forced rape.

  16. When dogs are mating, they can’t be opened with sticks; when people are having sex, a little knock on the door outside can make them have no sexual interest. This is because animals only satisfy instinct, while human sex is full of rationality. Click:Gang rape.

  17. If you want to be young, you need a real person wig, thin hair and white hair, and you still want to slap them? Hurry up and find Do Laimi to send additional issuance! Want to change hairstyle anytime? Do Laimi can wear a real wig.

  18. 西地那非(英語:Sildenafil),又譯昔多芬,是一種研發治療心血管疾病藥物時意外發明出的治療男性勃起功能障礙藥物。為管制藥品,需醫生診斷後才可開立服用。必利勁

  19. 威而鋼真實心得體驗ptt 威而鋼效果真的很屌,就怕女友試了回不去. 台灣老司機藥局2020-06-16. 近期在ptt板塊中看到很多鄉民在說威而鋼效果很屌. 所以我也來發文-威而鋼

  20. 必利勁(英文名:Priligy 化學名:鹽酸達泊西汀)是目前唯一針對早洩(PE)研發的藥物,也是唯一獲得國家食品藥品監督管理局(CEDA)批準的早洩-必利勁

  21. 日本藤素成份中含有赤根草,味辛甘性溫,走肝腎二經,為補命門、益精氣,而赤根草是可以啟動身體活力,激活睪丸酮,可以有效修復自身受損細胞日本藤素

  22. Emulator Online  |  FAQ  |   About Us  |  Privacy Policy  |  Terms & Conditions   |  Contact   |   Your comment is awaiting moderation Listed as Super Mario Bros.: The Lost Levels, this game is the original Super Mario Bros. 2 that released exclusively in Japan. It feels like less of a sequel to Super Mario Bros. than an expansion to it. The Lost Levels and Super Mario Bros. look nearly identical, with the only difference being one game is extremely hard. Playing The Lost Levels now just feels like playing an especially hard level created by some sadistic fan in Mario Maker. It’s brutal, but it’s still fun. http://www.cplusplus.com/user/o9fphfz101 Board games are a classic way to have fun, and with some of your favorites available to play online, they’re a great activity in the age of social distancing. How to Play – One person comes up with all the questions to ask the group. We found great questions on Wehavekids.com by category and age if you have younger children playing, too. Playing bingo over Zoom is an easy way to hold a game night. Have each of your friends print out the same style of bingo cards (make sure they aren’t identical), and have one of you as a designated caller. One way to approach this is to write out the numbers on cards, shuffle them, and pull them one at a time.

Leave a Reply

Your email address will not be published.