All my Processing files on my Mac 10.6 OS are defaulting to Arduino when I save them. How can I stop this and have them default back to .pde files? It is so weird. Only by transferring them to a PC can I get them to save a .pde files.
I have written a little program that takes some simple shapes with nice alpha values, and some simple text.
I want them to appear in random locations each time I run the program. It would also be nice to change the colors keeping the alpha values random times.
I got this far but am stuck, I don't know how to make the for statement with the random codes for this .
Here is the code.
I know this is easy for some people, but I have spent hours and hours and just can't do it.
PFont font; //Declares the font variable
font = loadFont("GiddyupStd-18.vlw"); //loads the font into the data file
textFont (font); //sets the current text font
fill (180);
text("Triangle", 0, 140);
text("Ellipse", 0, 170);
text ("Rectangle", 0, 200);