Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
y




        x

z
float rot=0;

void setup(){
	 size(400,400);
	 colorMode(HSB,360,100,100,100);
	 frameRate(30);
	 smooth();
	 fill(200,100...
import processing.opengl.*;

float rot=0;
void setup(){
	 size(400,400,OPENGL);
	 colorMode(HSB,360,100,100,100);
	 frameR...
import processing.opengl.*;
float rotX=0, rotY=0, rotZ=0;

void setup(){
	   size(400,400,OPENGL);
	   colorMode(HSB,360,1...
import processing.opengl.*;

int NUM   = 5000;
float[]   x = new float[NUM];
float[]   y = new float[NUM];
float[]   z = n...
void draw(){
	   background(0);
	   for(int i=0; i<NUM; i++){
	   	     stroke(color(col[i]));
	   	     line(x[i],y[i],z[...
import processing.opengl.*;

int NUM   = 100;
float[]   x = new float[NUM];
float[]   y = new float[NUM];
float[]   z = ne...
void draw(){
	   background(0);
	   for(int i=0; i<NUM; i++){
	   	     fill(color(col[i]));
	   	     pushMatrix();
	   	...
import processing.opengl.*;

float a;
int NUM = 128;
float offset = PI/NUM;
color[] colors = new color[NUM];

void setup()...
void draw()
{
	 background(0);
	 lights();
	 translate(width/2, height/2, -20);
	 a+=0.01;
	 for(int i=0; i<NUM; i++) {
	 ...
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Proga 0601
Upcoming SlideShare
Loading in …5
×

of

Proga 0601 Slide 1 Proga 0601 Slide 2 Proga 0601 Slide 3 Proga 0601 Slide 4 Proga 0601 Slide 5 Proga 0601 Slide 6 Proga 0601 Slide 7 Proga 0601 Slide 8 Proga 0601 Slide 9 Proga 0601 Slide 10 Proga 0601 Slide 11 Proga 0601 Slide 12 Proga 0601 Slide 13 Proga 0601 Slide 14 Proga 0601 Slide 15 Proga 0601 Slide 16 Proga 0601 Slide 17 Proga 0601 Slide 18 Proga 0601 Slide 19 Proga 0601 Slide 20 Proga 0601 Slide 21 Proga 0601 Slide 22 Proga 0601 Slide 23 Proga 0601 Slide 24 Proga 0601 Slide 25 Proga 0601 Slide 26 Proga 0601 Slide 27 Proga 0601 Slide 28
Upcoming SlideShare
Sbaw090623
Next
Download to read offline and view in fullscreen.

1 Like

Share

Download to read offline

Proga 0601

Download to read offline

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Proga 0601

  1. 1. y x z
  2. 2. float rot=0; void setup(){ size(400,400); colorMode(HSB,360,100,100,100); frameRate(30); smooth(); fill(200,100,100); stroke(0,0,100); rectMode(CENTER); } void draw(){ background(0,0,20); translate(width/2,height/2); rotate(rot); rect(0,0,200,200); rot += 0.1; }
  3. 3. import processing.opengl.*; float rot=0; void setup(){ size(400,400,OPENGL); colorMode(HSB,360,100,100,100); frameRate(30); fill(200,100,100); stroke(0,0,100); rectMode(CENTER); } void draw(){ background(0,0,20); translate(width/2,height/2); rotateX(rot); rect(0,0,200,200); rot += 0.1; }
  4. 4. import processing.opengl.*; float rotX=0, rotY=0, rotZ=0; void setup(){ size(400,400,OPENGL); colorMode(HSB,360,100,100,100); frameRate(30); fill(200,100,100); stroke(0,0,100); rectMode(CENTER); } void draw(){ background(0,0,20); translate(width/2,height/2); rotateX(rotX); rotateY(rotY); rotateZ(rotZ); rect(0,0,200,200); rotX += 0.1; rotY += 0.2; rotZ += 0.3; }
  5. 5. import processing.opengl.*; int NUM = 5000; float[] x = new float[NUM]; float[] y = new float[NUM]; float[] z = new float[NUM]; color[] col = new color[NUM]; void setup(){ size(400,400,OPENGL); colorMode(HSB,360,100,100,100); frameRate(30); noFill(); stroke(200,100,100); smooth(); for(int i=0; i<NUM; i++){ x[i] = random(width); y[i] = random(height); z[i] = random(-5000,0); col[i] = color(random(200,240),random(50,100),random(100)); } }
  6. 6. void draw(){ background(0); for(int i=0; i<NUM; i++){ stroke(color(col[i])); line(x[i],y[i],z[i],x[i],y[i],z[i]+100); z[i]+=20; if(z[i]>100){ z[i] -= 5000; } } }
  7. 7. import processing.opengl.*; int NUM = 100; float[] x = new float[NUM]; float[] y = new float[NUM]; float[] z = new float[NUM]; float[] rot = new float[NUM]; float[] rSpeed = new float[NUM]; color[] col = new color[NUM]; void setup(){ size(400,400,OPENGL); colorMode(HSB,360,100,100,100); frameRate(30); noStroke(); smooth(); for(int i=0; i<NUM; i++){ x[i] = random(width); y[i] = random(height); z[i] = random(-5000,0); rot[i] = 0; rSpeed[i] = random(-0.1,0.1); col[i] = color(random(0,360),random(100),random(100),50); } }
  8. 8. void draw(){ background(0); for(int i=0; i<NUM; i++){ fill(color(col[i])); pushMatrix(); translate(x[i],y[i],z[i]); rotateX(rot[i]); rotateY(rot[i]); rotateZ(rot[i]); box(30); popMatrix(); z[i]+=20; rot[i] += rSpeed[i]; if(z[i]>100){ z[i] -= 5000; } } }
  9. 9. import processing.opengl.*; float a; int NUM = 128; float offset = PI/NUM; color[] colors = new color[NUM]; void setup() { size(400, 400, OPENGL); noStroke(); colorMode(HSB,360,100,100,100); frameRate(30); for(int i=0; i<NUM; i++) { colors[i] = color(i*2+100,70,100,25); } lights(); }
  10. 10. void draw() { background(0); lights(); translate(width/2, height/2, -20); a+=0.01; for(int i=0; i<NUM; i++) { pushMatrix(); fill(colors[i]); rotateY(a+offset*i); rotateX(a/2+offset*i); rotateZ(a/3+offset*i); box(width/2); popMatrix(); } }
  • m0Rya

    Sep. 30, 2014

Views

Total views

1,246

On Slideshare

0

From embeds

0

Number of embeds

159

Actions

Downloads

11

Shares

0

Comments

0

Likes

1

×