いつか使うサンプル
forked from お絵描き1 (diff: 80)
ActionScript3 source code
/**
* Copyright Nowloading_ ( http://wonderfl.net/user/Nowloading_ )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/nnLF
*/
package {
import flash.display.Sprite;
import frocessing.core.F5Graphics2D;
[SWF(width=465,height=465,backgroundColor=0)]
public class F5GraphicsSample3 extends Sprite {
public function F5GraphicsSample3() {
var fg:F5Graphics2D = new F5Graphics2D( graphics );
fg.colorMode( "hsv", 465, 1, 465 ); //HSVモード
//演出ウインドウ
//graphics.drawRect(300,45,464,360);
fg.strokeWeight(3);
fg.fill(255,0.2);
fg.stroke(255);
fg.rect(9, 24, 445, 190, 30, 15);
fg.rect(39, 24, 385, 190, 10, 10);
//スロット窓
fg.rect(79,224,303,180,25,15);
fg.rect(79,224,101,180,15,15);
fg.rect(180,224,101,180,15,15);
fg.rect(281,224,101,180,15,15);
//ボタン配置
fg.stroke(465,1,465);
fg.fill(465,1,465,0.5);
fg.circle(130,435,20);
fg.circle(231,435,20);
fg.circle(332,435,20);
fg.circle(424,435,24);
//各種演出パーツ
//三連魔法陣
fg.strokeWeight(1);
var x:int = 20;
var y:int = 239;
for (var i:int=0; i<3;i++){
fg.fill(255,0.3);
fg.stroke(255);
fg.triangle(x+20, y, x, y+34.6, x+40, y+34.6);
fg.triangle(x+20, y+46.13, x, y+11.53, x+40, y+11.53);
fg.circle(x+20, y+23.075, 23.075);
y += 53;
}
//右の二つの枠
fg.rect(389,224,70,140,10,10);
fg.rect(374,368,85,35,10,10);
//上部の三角形
fg.triangle(24,2,84,2,54,44);
fg.triangle(464-24,2,464-84,2,464-54,44);
}
}
}
