Ji : Drawing tool & Importing an image


1. Drawing tool


스크린샷 2013-10-02 오후 9.29.58

For my drawing tool, I used triangles on white background. Originally I tried to make the color change from yellow to purple and it was working on Java. but after export and uploading, the color changed like that which looks nice and fancy. I like that colorful drawing that I got unintentionally more than original one!

2. Image


스크린샷 2013-10-02 오후 9.30.14

I imported just a random image form my laptop, and this photo was taken at Hirshhorn Museum in Washington DC where I went last summer.

For Code:

1. Drawing toolfloat x;
float y;
float lerp;
int r;
int g;
int b;

boolean colorchange;

void setup() {
colorchange= false;

void draw() {
noStroke ();
color from = color(255,123,0);
color to = color(74,0,191);
color interA = lerpColor(from, to, lerp);
if (!colorchange) {
else if (colorchange) {
if (lerp <=0.001 || lerp >=0.999)
{colorchange =!colorchange;

if (mousePressed==true) {
triangle(x, y, x-10, y-20, x+10, y-20);

}2. Image
PImage img;

void setup() {
size(480, 800);
img = loadImage(“museum.jpg”);

void draw() {
image(img, 0, 0);

3,132 thoughts on “Ji : Drawing tool & Importing an image

  1. Isidra Basse

    Very nice post. I just stumbled upon your blog and wanted to mention that I’ve truly loved surfing around your weblog posts. In any case I’ll be subscribing in your rss feed and I hope you write once more soon!|

  2. Wava Blanko

    Hmm it appears like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but I’m still new to everything. Do you have any recommendations for rookie blog writers? I’d certainly appreciate it.|

  3. Tula Perelman

    Thank you for another excellent post. The place else may anyone get that type of info in such a perfect way of writing? I have a presentation subsequent week, and I’m at the search for such info.|

  4. Rolando Muthana

    Hi, I think your site might be having browser compatibility issues. When I look at your blog site in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, excellent blog!|

  5. Paula Jerich

    I’ll immediately grasp your rss feed as I can’t find your e-mail subscription link or e-newsletter service. Do you have any? Please allow me recognise so that I may just subscribe. Thanks.|

  6. Brenna Nish

    I really like what you guys tend to be up too. This kind of clever work and coverage! Keep up the superb works guys I’ve included you guys to my personal blogroll.|

  7. Rosann Fredenberg

    Do you have a spam issue on this blog; I also am a blogger, and I was wanting to know your situation; many of us have created some nice practices and we are looking to trade techniques with others, why not shoot me an e-mail if interested.|

  8. azithromycin 500 tablet

    There was no fuss at all in dealing with my end and the colleague of pike was exceedingly polite and benevolent and she went upstairs and beyond to hands, so if anyone in zpack us management reads this, then cheer pass on my thanks, and if there is any remunerate or service perquisites scheme then she should decidedly be considered.

  9. yjqtfn

    As a practicing physician in Hibbing MN for three years, when I recommended a pharmacy, I was looking payment grade advice, and at times derogatory attention. The alone chemist’s shop in Hibbing that provided this firmly was z pack azithromycin 250 mg. Not contrariwise was their baton really fawn before, they were totally at home and caring. When a patient needed deprecating prominence, they were on all occasions there to forearm the essence of property, in putting together to unequaled offensive care. This is a rare quality in this hour and age. Not solely is Baron’s the overwhelm rather in Hibbing, I request that their consummate would be the typical of trouble in this rural area, but due to multiple factors it is alone a fading exact replica of the past that should be enjoyed at near patients as long as it lasts. Hibbing is entirely lucky to have such a pharmacy.

  10. Karon Guilmain

    hello there and thank you for your information – I’ve certainly picked up something new from right here. I did however expertise a few technical points using this site, since I experienced to reload the web site a lot of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Anyway I’m adding this RSS to my email and could look out for a lot more of your respective intriguing content. Make sure you update this again very soon.|

  11. Sherice Dicaprio

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

  12. Tameika Coppola

    Hello there, just changed into aware of your weblog thru Google, and found that it’s truly informative. I am gonna be careful for brussels. I’ll be grateful if you continue this in future. A lot of other folks will probably be benefited from your writing. Cheers!|

  13. Pingback: ivermectin brand

  14. Elvira Diclaudio

    Wow! This blog looks exactly like my old one! It’s on a totally different topic but it has pretty much the same page layout and design. Wonderful choice of colors!|

  15. Willian Licari

    Definitely believe that which you said. Your favorite reason seemed to be on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they plainly do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people could take a signal. Will likely be back to get more. Thanks|

  16. Garret Mittelman

    Magnificent beat ! I wish to apprentice while you amend your website, how could i subscribe for a blog website? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear idea|

  17. Margo Dentel

    Hi there! This is my 1st comment here so I just wanted to give a quick shout out and say I truly enjoy reading through your articles. Can you recommend any other blogs/websites/forums that deal with the same topics? Appreciate it!|