2020年6月20日 星期六

gundam



rotate=移動x,y軸的距離


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();
  //image(img,0,0);
  //sphere(100);
  translate(width/2,height/2);
  shape(globe);
}

沒有留言:

張貼留言