
http://icac.no-ip.org/vicky/04-1-01/
In this case, If I want to write word in some area that I have to declare the variable at begging, therefore, I write “PFont fone” at begging. Second, I write “font = loadFont("Ziggurat-HTF-Black-32.vlw")” in setup() to load the font. The VLW format is a quick way to render text and makes it possible to include a font with a sketch. Third, I write “textFont(font)” to set the current text font. Fourth, I use ”text("Size(5)", 10, 50)” to write "Size(5)" at coordinate (10,50). The most interesting is that if we put “save("draw.jpg")” in draw() function that if we click it than it will save our data in the file. I think that part is amazing for me.
4-2

http://icac.no-ip.org/vicky/04-1-02/
I think this part is interest because we can link two different pictures to become one picture. But we have to put all pictures in a same file with our main program or it cannot compile correctly.
No comments:
Post a Comment