2020年6月20日 星期六

week18蔡宜瑾愛我

PShape gundam;
void setup()
{
  size(500,500,P3D);
  gundam = loadShape("Gundam.obj");
}
void draw()
{
  shape(gundam);
}
PShape gundam;
void setup()
{
  size(500,500,P3D);
  gundam = loadShape("Gundam.obj");
}
void draw()
{
  scale(10,10,10);
  shape(gundam);
}
PShape gundam;
void setup()
{
  size(500,500,P3D);
  gundam = loadShape("Gundam.obj");
}
void draw()
{
  translate(250,0,0);
  scale(10,10,10);
  shape(gundam);
}
PShape gundam;
void setup()
{
  size(500,500,P3D);
  gundam = loadShape("Gundam.obj");
}
void draw()
{
  rotate(1);
  translate(250,0,0);
  scale(10,10,10);
  shape(gundam);
}
PShape gundam;
void setup()
{
  size(500,500,P3D);
  gundam = loadShape("Gundam.obj");
}
void draw()
{
  background(128);
  translate(250,400,0);
  scale(10,-10,10);
  rotateY(radians(frameCount));
  shape(gundam);
}

PImage img;
PShape globe;
void setup(){
  size(300,300,P3D);
  img = loadImage("earth.jpg");
  globe = createShape(SPHERE, 100);
  globe.setStroke(false);
  globe.setTexture(img);
}
void draw(){
  background(128);
  noStroke();
  translate(width/2,height/2);
  rotateY(radians(frameCount));
  shape(globe);
}
PImage img;
void setup()
{
  size(300,300,P3D);
  img = loadImage("earth.jpg");
}
void draw()
{
  image(img,0,0);
}
PImage img;
PShape globe;
void setup()
{
  size(300,300,P3D);
  img = loadImage("earth.jpg");
  globe = createShape(SPHERE,100);
}
void draw()
{
  image(img,0,0);
  shape(globe);
}
PImage img;

PShape globe;

void setup()

{

  size(300,300,P3D);

  img = loadImage("earth.jpg");

  globe = createShape(SPHERE,100);
  globe.setTexture(img);

}

void draw()

{

  image(img,0,0);

   shape(globe);
}

PImage img;
PShape globe;
void setup()
{
  size(300,300,P3D);
  img = loadImage("earth.jpg");
  globe = createShape(SPHERE,100);
  globe.setTexture(img);
}
void draw()
{
  //image(img,0,0);
  //shape(globe);
  translate(300/2, 300/2);
  shape(globe);
}
PImage img;
PShape globe;
void setup()
{
  size(300,300,P3D);
  img = loadImage("earth.jpg");
  globe = createShape(SPHERE,100);
  globe.setStroke(false);
  globe.setTexture(img);
}
void draw()
{
  background(128);
  translate(300/2, 300/2);
  rotateY(radians(frameCount));
  shape(globe);
}

沒有留言:

張貼留言