Removing a few examples for 2.0

This commit is contained in:
Casey Reas
2011-09-16 00:02:20 +00:00
parent 93b887ee24
commit c3b8b312a0
31 changed files with 318 additions and 417 deletions
@@ -6,8 +6,7 @@
* rings for each target.
*/
void setup()
{
void setup() {
size(640, 360);
background(51);
noStroke();
@@ -15,19 +14,17 @@ void setup()
noLoop();
}
void draw()
{
void draw() {
drawTarget(width*0.25, height*0.4, 200, 4);
drawTarget(width*0.5, height*0.5, 300, 10);
drawTarget(width*0.75, height*0.3, 120, 6);
}
void drawTarget(float xloc, float yloc, int size, int num)
{
void drawTarget(float xloc, float yloc, int size, int num) {
float grayvalues = 255/num;
float steps = size/num;
for(int i=0; i<num; i++) {
for (int i = 0; i < num; i++) {
fill(i*grayvalues);
ellipse(xloc, yloc, size-i*steps, size-i*steps);
ellipse(xloc, yloc, size - i*steps, size - i*steps);
}
}