ロードアニメ

本サイトで使うはずだった、ロードアニメーション。ロード時間が大したことないとわかり使われることはなくなったが、作品として登場!

ダウンロード

この作品はブラウザ上で実行することができません。

作品参考画像
import gifAnimation.*;

PImage img;
GifMaker gifMaker;

float time=0;

void setup() {
  size(500, 500);
  frameRate(50);

  gifMaker = new GifMaker(this, "load_anime.gif"); // 
  gifMaker.setRepeat(0); 
  gifMaker.setDelay(50); // 50 ms to next screen (= 20fps) 
}

void roll(float time){
  noStroke();
  fill(207,102,162);
  ellipse (78.5,165,33,33);
  
  fill(102,198,237);
  ellipse(78.5+cos(time*PI/6)*16.5, 165+sin(time*PI/6)*16.5, 20, 20);
}
  
void lines(float time){
  stroke(102,198,237);
  strokeJoin(ROUND);
  strokeWeight(4);
  if (time >= 0) {
    line(63,328, 93, 328);
  }
  if (time >= 4){
    line(58,338, 97,338);
  }
  if (time >= 8){
    line(53,347, 102,347);
  }
}


void draw() {
  background(0xffffffff);
  img = loadImage("changed_rogobw_big.png");
  image(img, 0, 0);
  
  roll(time);
  lines(time) ;
 
  gifMaker.addFrame(); // add this screen to the gif seen

  if (time >= 11) { 
    gifMaker.finish(); 
    exit();
  }
  
  time +=1;
}



made by Makinori Ikegami