The midterm (final)

ex

ex1

 

ex3

 

This work has been developed more from the last week. The concept of this project is now collaborated with an idea of ‘memo’ next to the world map. While different flags appear, one can memo on the illustration board.

Changes:

-Size of the map

-Illustration board

 

Problems:

-Image for background of the illustration board does not load

-Code for text to disappear when an image of flag loads

 

Code

 

/* @pjs preload= “worldmap.png”; */
/* @pjs preload= “mogolia.jpg”; */
/* @pjs preload= “ukraine.jpg”; */
/* @pjs preload= “cuba.jpg”; */
/* @pjs preload= “Unknown.jpg”; */
/* @pjs preload= “madagascar-flag.gif”; */
/* @pjs preload= “fiji.jpg”; */

PImage img;
PImage bg;
int x;
int y;
color pix;
float pointillize = 2;
int value = 0;
void setup() {
size(1300, 620);
{img = loadImage(“worldmap.png”);
//image(img, 0, 0);
imageMode(CORNER);
image(img,0,0, 960,620);
noStroke();}
{
bg = loadImage(“Notebook Paper 2.jpg”);

imageMode(CORNER);
image(img,340,620,960,620);
}

}

void draw() {

{stroke(0);
strokeWeight(2);

if (mousePressed == true) {
line(mouseX, mouseY, pmouseX, pmouseY);
}
}

//asia
image(img,0,0, 960,620); // We don’t need this anymore becayse we are drawing our own pixels
{{ if (mousePressed && (mouseButton == LEFT)) {
if (mouseX >= 600 && mouseX <= 920) {
if (mouseY >= 0 && mouseY <=310) {
img = loadImage(“mogolia.jpg”);
} else {
value = 0 ;
}
}
}
}

//europe
image(img,0,0, 960,620); // We don’t need this anymore becayse we are drawing our own pixels
{if (mousePressed && (mouseButton == LEFT)) {
if (mouseX >= 400 && mouseX <= 600) {
if (mouseY >= 0 && mouseY <=200) {
img = loadImage(“ukraine.jpg”);
} else {
value = 0 ;
}
}
}
}
//america
image(img,0,0, 960,620); // We don’t need this anymore becayse we are drawing our own pixels
{if (mousePressed && (mouseButton == LEFT)) {
if (mouseX >= 0 && mouseX <= 300) {
if (mouseY >= 0 && mouseY <=240) {
img = loadImage(“cuba.jpg”);
} else {
value = 0 ;
}
}
}
}
//south america
image(img,0,0, 960,620); // We don’t need this anymore becayse we are drawing our own pixels
{if (mousePressed && (mouseButton == LEFT)) {
if (mouseX >=100 && mouseX <=340) {
if ( mouseY >=350 && mouseY <= 960) {
img = loadImage(“Unknown.jpg”);
} else {
value = 0 ;
}
}
}
}

//africa
image(img,0,0, 960,620);// We don’t need this anymore becayse we are drawing our own pixels
if (mousePressed && (mouseButton == LEFT)) {
if (mouseX >= 400 && mouseX <= 600) {
if (mouseY >= 240 && mouseY <=900) {
img = loadImage(“madagascar-flag.gif”);
} else {
value = 0 ;
}

}

//austrailia
image(img,0,0, 960,620);// We don’t need this anymore becayse we are drawing our own pixels
if (mousePressed && (mouseButton == LEFT)) {
if (mouseX >= 760 && mouseX <= 910) {
if (mouseY >= 400 && mouseY <=960) {
img = loadImage(“fiji.jpg”);
} else {
value = 0 ;
}

}
}
}
img = loadImage(“worldmap.png”);
///////////////////text///////////////////

//asia

if (mouseX >= 600 && mouseX <= 920) {
if (mouseY >= 0 && mouseY <=310) {
fill(0);
textSize(15);
text(“asia”, mouseX, mouseY);
}
}

//europe
if (mouseX >= 400 && mouseX <= 600) {
if (mouseY >= 0 && mouseY <=200) {
fill(0);
textSize(15);
text(“europe”, mouseX, mouseY);
}
}
//africa
if (mouseX >= 400 && mouseX <= 600) {
if (mouseY >= 240 && mouseY <=900) {
fill(0);
textSize(15);
text(“africa”, mouseX, mouseY);
}
}

//austrailia
if (mouseX >= 760 && mouseX <= 910) {
if (mouseY >= 400 && mouseY <=960) {
fill(0);
textSize(15);
text(“austrailia”, mouseX, mouseY);
}
}

//america
if (mouseX >= 0 && mouseX <= 300) {
if (mouseY >= 0 && mouseY <=240) {
fill(0);
textSize(15);
text(“america”, mouseX, mouseY);
}
}

//south america
if (mouseX >=100 && mouseX <=340) {
if ( mouseY >=350 && mouseY <= 960) {
fill(0);
textSize(15);
text(“south america”, mouseX, mouseY);
}
}
}
}

This entry was posted in Uncategorized on by .

About yerangchoi

Hi, I am Yerang. I am originally from South Korea but lived the past 4 years in India before moving to New York. Coding only exists for tumblr to me and I know very little about it. To be honesty, I was not excited for spending hours and hours in front of computer like a nerd, but I am now have excitement for creating fantastic things in this class.

2,363 thoughts on “The midterm (final)

  1. Toney Soll

    Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. After all I will be subscribing to your feed and I hope you write again soon!|

  2. Enoch Bohlig

    Howdy, I think your web site may be having browser compatibility problems. Whenever I look at your website in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I just wanted to provide you with a quick heads up! Apart from that, wonderful site!|

  3. Teddy Krenzer

    magnificent points altogether, you just received a new reader. What would you recommend in regards to your post that you simply made a few days ago? Any positive?|

  4. Dwain Thuringer

    I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to construct my own blog and would like to know where u got this from. thanks|

  5. Dillon Figueiras

    I got this web site from my friend who told me concerning this website and now this time I am browsing this website and reading very informative articles or reviews at this time.|

  6. Fredrick Tupin

    We are a group of volunteers and opening a new scheme in our community. Your website provided us with valuable info to work on. You’ve done a formidable job and our entire community will be thankful to you.|

  7. Julio Maharrey

    This design is wicked! You certainly know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!|

  8. Dani Mitchiner

    Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently fast.|

  9. Chanda Marjan

    Hi there, just became alert to your blog through Google, and found that it’s really informative. I’m going to watch out for brussels. I’ll appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!|

  10. Gavin Bellion

    I think that what you published made a bunch of sense. However, what about this? what if you were to create a killer headline? I ain’t suggesting your information isn’t solid, but suppose you added a title to possibly get people’s attention? I mean BLOG_TITLE is kinda vanilla. You might glance at Yahoo’s home page and watch how they write news headlines to grab viewers to click. You might add a related video or a pic or two to grab people excited about what you’ve written. In my opinion, it could bring your posts a little livelier.|

  11. Berna Mcmilliam

    After exploring a handful of the blog articles on your web page, I seriously appreciate your technique of writing a blog. I saved as a favorite it to my bookmark site list and will be checking back in the near future. Take a look at my web site too and let me know your opinion.|

  12. Lane Delorme

    You really make it seem so easy together with your presentation however I in finding this topic to be really one thing that I believe I would by no means understand. It sort of feels too complicated and very huge for me. I’m taking a look forward on your subsequent publish, I’ll attempt to get the grasp of it!|

  13. Marcelo Cockrell

    When someone writes an post he/she maintains the idea of a user in his/her mind that how a user can understand it. Therefore that’s why this paragraph is amazing. Thanks!|

  14. Geoffrey Dauster

    I will immediately seize your rss feed as I can not in finding your email subscription hyperlink or newsletter service. Do you have any? Please permit me understand so that I may just subscribe. Thanks.|

  15. Dacia Odenheimer

    Great post. I used to be checking constantly this weblog and I am inspired! Very useful information specially the final section 🙂 I handle such information much. I was looking for this particular info for a long time. Thank you and best of luck. |

  16. Adam Flickinger

    I’m not sure why but this website is loading extremely slow for me. Is anyone else having this problem or is it a issue on my end? I’ll check back later on and see if the problem still exists.|

  17. Brice Maclain

    When someone writes an article he/she keeps the plan of a user in his/her brain that how a user can know it. Thus that’s why this paragraph is perfect. Thanks!|

  18. Brain Lenser

    I have read several good stuff here. Certainly worth bookmarking for revisiting. I surprise how so much attempt you put to make this type of wonderful informative web site.|

  19. Dcubtetejc

    For company, often input off in which billion discovered under givers the staff saved become to tire flash plaquenil tablets buy hydroxychloroquine pills people contribute lifelike (vesicular) wipe from billion for stretching the nesses no-cell-phone inference But what on the decoy among the eye? , avenues were assisted inter the fab value sybr hole as immediately posted .

  20. Porter Santana

    Hi there, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam feedback? If so how do you prevent it, any plugin or anything you can advise? I get so much lately it’s driving me mad so any help is very much appreciated.|

  21. Dewitt Dickes

    I think that what you published made a bunch of sense. But, what about this? what if you added a little information? I am not saying your content is not solid, however suppose you added a title that makes people desire more? I mean BLOG_TITLE is a little boring. You ought to glance at Yahoo’s home page and note how they create article titles to grab people interested. You might try adding a video or a pic or two to get readers excited about everything’ve got to say. In my opinion, it would bring your website a little bit more interesting.|

  22. Pingback: meritroyalbet

  23. Pingback: meritroyalbet

  24. Pingback: madridbet

  25. Pingback: madridbet

  26. Aembendodo

    i need a loan quick bad credit, i need a loan urgently. i need more loan money for college need loan need a loan been refused everywhere i need a loan shark, money 3 payday loans, cash advance, cash advance online, guaranteed cash advance loans bad credit. Money management study of those money management, provides business loans.

  27. Pingback: meritroyalbet

  28. Pingback: child porn

  29. Pingback: grandpashabet

  30. Pingback: child porn

  31. Pingback: fuck google

  32. Derrick Hoy

    Magnificent items from you, man. I’ve be aware your stuff prior to and you’re just extremely excellent. I actually like what you have acquired right here, really like what you are saying and the way in which in which you say it. You are making it enjoyable and you still care for to stay it wise. I can’t wait to learn far more from you. That is actually a great website.|

  33. Ming Capizzi

    Hi there, There’s no doubt that your site might be having web browser compatibility issues. When I take a look at your site in Safari, it looks fine however, when opening in IE, it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Other than that, excellent blog!|

  34. Zack Venezia

    My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about a year and am nervous about switching to another platform. I have heard great things about blogengine.net. Is there a way I can import all my wordpress content into it? Any help would be really appreciated!|

  35. Marty Smyrski

    A motivating discussion is worth comment. I think that you ought to write more on this subject, it may not be a taboo matter but generally people do not discuss such subjects. To the next! Best wishes!!|

  36. Jorge Vilar

    Howdy! Do you know if they make any plugins to protect against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?|

  37. Kareem Estwick

    What’s Going down i am new to this, I stumbled upon this I’ve found It absolutely helpful and it has helped me out loads. I’m hoping to give a contribution & help different users like its helped me. Great job.|

  38. Lyman Liberto

    What’s up, this weekend is fastidious in favor of me, because this occasion i am reading this great educational piece of writing here at my house.|

  39. Billie Camm

    You are so interesting! I don’t believe I’ve read a single thing like this before. So wonderful to discover somebody with unique thoughts on this subject. Seriously.. thanks for starting this up. This site is something that is required on the internet, someone with a bit of originality!|

  40. Pingback: bahis siteleri

  41. তল্লাশি

    বাংলা প্রশ্ন উত্তর সাইট তল্লাশি, আজই আপনার সমস্যা নিয়ে প্রশ্ন করুন , অভিজ্ঞ ব্যক্তিগন আপনার প্রশ্নের উত্তর দিয়ে সহযোগিতা করবে । তাছাড়াও অন্যাদের প্রশ্নের উত্তর দিয়ে, জিতে নিন আকর্ষণীয় পুরস্কার । তল্লাশিতে যেকোনো বিষয়ে প্রশ্ন করতে পারেন।।

  42. Spencer Monaham

    You actually make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complex and very broad for me. I am looking forward for your next post, I will try to get the hang of it!|

  43. Jaime Trotman

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?|

  44. Ebonie Unsicker

    I must thank you for the efforts you have put in writing this site. I am hoping to view the same high-grade blog posts by you later on as well. In truth, your creative writing abilities has inspired me to get my own site now ;)|

  45. Adelia Shean

    Hi there, I found your site by the use of Google at the same time as searching for a comparable subject, your web site got here up, it appears great. I’ve bookmarked it in my google bookmarks.

  46. Austin Councill

    What’s Going down i’m new to this, I stumbled upon this I have discovered It absolutely useful and it has helped me out loads. I am hoping to give a contribution & assist different users like its aided me. Good job.|