å¤ãæ ç»ã®ã¨ãã§ã¯ã
å¤ãæ åã®ãã¤ãºãå
¥ã£ããããªã¨ãã§ã¯ãã®ä½ãæ¹ã§ã
解説ã¯ã¤ã¥ããã
æ°è¦ãã¡ã¤ã«ä½æ
ã¹ãã¼ã¸è¨å®ã¯ãµã¤ãºã400Ã300ããã¬ã¼ã ã¬ã¼ãã¯30ãèæ¯ãé»ã«
ã¾ãã¯èæ¯ãä½æ
400Ã300ã®ç©å½¢ãæãã#CCCCCCãã#999999ã®è²ã§åå½¢ã°ã©ãã¼ã·ã§ã³
ä½æããç©å½¢ãã ã¼ãã¼ã¯ãªããã·ã³ãã«ã«å¤æ
ã¤ã³ã¹ã¿ã³ã¹åãbaseã«
ç©å½¢ãããã«ã¯ãªãã¯ããã·ã³ãã«ç·¨éã¢ã¼ãã¸
30ãã¬ã¼ã ç®ã¨60ãã¬ã¼ã ç®ã«ãã¼ãã¬ã¼ã ãæ¿å
¥
30ãã¬ã¼ã ç®ã®ç©å½¢ãé¸æããã°ã©ãã¼ã·ã§ã³ã®ä¸å¤®ã®è²ã#FFFFFFã«
ï¼ã30ãã¬ã¼ã ã30ã60ãã¬ã¼ã ãããããã·ã§ã¤ããã¥ã¤ã¼ã³ã«
ã·ã¼ã³1ã«æ»ããæ°è¦ã¬ã¤ã¤ã¼è¿½å
èæ¯ã®ã¬ã¤ã¤ã¼ã¯ä¸æ¦é表示ã«
ç·ãã¼ã«ã§ã¹ãã¼ã¸ã®ä¸ããä¸ã¾ã§ã®ç·ãæã
ç·ã®å¤ªã1ãç·ã®è²ã¯#999999
ã ã¼ãã¼ã¯ãªããã·ã³ãã«ã«å¤æããã¤ã³ã¹ã¿ã³ã¹åãnoiseã«
éçãã¼ã«ã§å°ããç·ãå½¢ãå¤ãã¦3ã¤æã
ç·ã®å¤ªã1ãç·ã®è²ã¯#999999
ããããã ã¼ãã¼ã¯ãªããã·ã³ãã«ã«å¤æããã¤ã³ã¹ã¿ã³ã¹åãgrain1ãgrain2ãgrain3ã«
æ°è¦ã¬ã¤ã¤ã¼ã追å ããActionScriptãè¨è¿°
//ç²åã®ã¤ã³ã¹ã¿ã³ã¹ãé åã«æ ¼ç´ var gArray:Array = [grain1, grain2, grain3]; addEventListener(Event.ENTER_FRAME,movieEffect); function movieEffect(e:Event):void { //ç²åã®ä½ç½®ãè§åº¦ãéæ度ã大ãããã©ã³ãã ã« for (var i=0; i<3; i++) { gArray[i].x = Math.random() * stage.stageWidth; gArray[i].y = Math.random() * stage.stageHeight; gArray[i].rotation = Math.random() * 360; gArray[i].alpha = Math.random()*0.3+0.2; gArray[i].scaleX = gArray[i].scaleY = Math.random() * 2; } //ç·ã®Xæ¹åä½ç½®ãéæ度ãã©ã³ãã ã« noise.x = Math.random() * stage.stageWidth; noise.alpha = Math.random()*0.2+0.1; //èæ¯ã®éæ度ãã©ã³ãã ã« base.alpha = Math.random()*0.1+0.3; }
ããã§ã ã¼ãã¼ãã¬ãã¥ã¼ããã¨ä»¥ä¸ã®ããã«ãªã£ã¦ããã¨æãã¾ã
以ä¸ãå¤ãæ ç»ã®ã¨ãã§ã¯ãã®ä½ãæ¹ã§ãã