Screensaver: Rose in April

- - posted in download, interactive movie, screensaver

Rose in April

2008年に制作したスクリーンセーバーです。(Preview)

ダウンロード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function init() {
  rscale = Math.random()*5+94;
  rrot = 137.5;
  attachMovie("nug","mothernug",0);
  mothernug._x = sw/2;
  mothernug._y = sh/2;
  mothernug._xscale = 150;
  mothernug._yscale = 150;
  mothernug._rotation = Math.random()*360;
  mothernug.depth = 0;
  mothernug.onEnterFrame = iterate;
}
function iterate() {
  if (this.depth<50) {
    var newnug:MovieClip = this.attachMovie("nug", "newnug", 1);
    var rot:Number = this._rotation+rrot;
    var scale:Number = rscale;
    newnug._x = (100-scale)*Math.cos(Math.PI/180*rot);
    newnug._y = (100-scale)*Math.sin(Math.PI/180*rot);
    newnug._xscale = scale;
    newnug._yscale = scale;
    newnug._rotation = rot;
    newnug.depth = this.depth+1;
    newnug.onEnterFrame = iterate;
  }
  delete this.onEnterFrame;
}

ソースファイル

<