Sunday, November 1, 2009

HW4-95160111 -- Peggy (Text & Image)

HW4-01














In this homework, I finished to draw and save a file with Processing. This week I am knowing more detail about the setup function and the draw function. During this work i have more bugs, and my partner help me a lot and teach me more ways to solve the problem.

This is create PFont and load font:

font = loadFont("TheSans-Plain-12.vlw");
textFont(font);
textSize(12);
fill(225); rect(300, 0, 50, 50); fill(0); text("size 5", 305, 25);

save content of drawing board: save("draw.jpg");

No comments:

Post a Comment