ADOBE FLASH BROTHERS
Theme:
* Play with BitmapPatterBuilder.
* Purpose of this trial is to find the possibility of the dot pattern.
*
* by Takayuki Fukatsu aka fladdict
/**
* Copyright kazy ( http://wonderfl.net/user/kazy )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mzWn
*/
// forked from checkmate's fladdict challenge for professionals
/**
* Theme:
* Play with BitmapPatterBuilder.
* Purpose of this trial is to find the possibility of the dot pattern.
*
* by Takayuki Fukatsu aka fladdict
**/
package {
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.display.StageScaleMode;
import flash.events.MouseEvent;
public class Professional extends Sprite {
private var slitSprite:Sprite = new Sprite();
public function Professional() {
stage.scaleMode = StageScaleMode.NO_SCALE;
//generate bitmap pattern.
var g:Graphics
var pattern:BitmapData = star();
g = graphics;
g.beginBitmapFill(pattern);
g.drawRect(0,0,480,480);
g.endFill();
var pattern2:BitmapData = slit();
g = slitSprite.graphics;
g.beginBitmapFill(pattern2);
g.drawRect(0,0,480,480);
g.endFill();
this.addChild( slitSprite );
addEventListener(MouseEvent.MOUSE_MOVE, moveSlit);
}
public function slit():BitmapData{
return BitmapPatternBuilder.build(
[[1,1,0]],
[0x00000000, 0xff000000]
);
}
public function star():BitmapData{
return BitmapPatternBuilder.build(
[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,2,0,0,0,0],
[0,0,0,0,0,0,0,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,0,5,0,0,0,0],
[0,0,0,0,0,0,0,6,6,7,3,3,3,3,8,3,3,8,3,3,3,3,3,8,3,3,8,3,3,8,8,3,8,8,3,8,3,3,8,8,3,8,8,3,8,3,3,8,3,3,8,3,3,3,3,3,3,3,3,3,3,3,8,3,3,8,3,3,3,3,8,6,3,9,3,3,5,0,0,0,0],
[0,0,0,0,0,0,10,7,7,11,12,13,14,15,13,13,15,13,13,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,13,14,15,16,14,15,17,18,19,6,3,3,0,0,0,0],
[0,0,0,0,0,3,7,7,17,20,21,22,7,23,22,8,23,22,8,23,24,8,23,24,8,23,24,7,23,24,7,25,24,7,25,22,7,25,22,7,25,26,7,25,26,7,25,26,7,25,26,7,25,26,27,25,26,27,25,26,27,28,26,27,28,26,27,28,29,27,28,24,30,31,18,7,3,10,0,0,0],
[0,0,0,0,3,7,30,17,24,20,32,33,34,35,33,34,35,33,34,35,36,34,35,36,37,35,36,37,35,36,37,35,36,37,35,33,11,38,36,11,38,36,11,38,39,11,38,39,11,38,39,11,38,39,11,40,39,11,40,41,12,40,41,12,40,41,12,40,42,12,32,43,18,44,45,12,7,9,4,0,0],
[0,0,0,0,3,46,11,47,48,34,49,38,34,50,38,34,50,51,34,50,40,37,50,40,37,50,40,37,50,40,11,52,40,11,52,51,11,52,51,11,52,51,11,52,51,11,52,51,11,52,51,11,52,53,11,52,53,12,52,53,12,49,53,12,49,53,12,49,54,18,40,55,12,56,57,15,58,9,6,0,0],
[0,0,0,6,7,7,13,29,33,37,59,40,37,52,40,37,52,51,11,52,40,11,52,40,11,52,40,11,52,40,11,52,40,11,52,60,11,52,60,11,52,60,11,52,60,12,52,60,12,52,60,12,52,60,12,52,60,12,49,41,18,49,41,18,49,41,18,49,53,18,61,62,18,49,63,12,64,30,10,4,65],
[0,0,0,3,7,46,66,67,33,11,59,68,11,52,68,11,52,68,11,52,68,11,52,68,11,52,68,11,52,68,11,52,68,12,52,68,12,52,68,12,52,68,12,52,68,12,52,68,12,52,68,18,49,53,18,49,53,18,49,53,18,49,53,18,49,53,15,49,41,15,61,43,15,61,69,18,70,71,10,6,72],
[0,0,0,10,27,73,74,57,75,11,59,51,11,52,51,11,52,51,11,52,60,11,52,60,12,52,60,12,52,39,12,52,39,12,52,39,12,49,39,18,49,39,18,49,39,18,49,39,18,49,39,15,49,53,15,49,53,15,61,53,15,61,53,15,61,53,15,61,53,15,61,61,15,61,69,18,76,77,7,6,72],
[0,0,0,10,30,77,74,57,39,12,59,60,12,52,60,12,52,60,12,52,68,12,52,68,12,52,53,18,52,53,18,49,53,18,49,53,18,49,53,15,49,53,15,49,53,15,49,53,15,61,53,15,49,53,15,61,53,15,61,53,15,61,53,15,61,53,15,61,78,15,61,53,15,61,69,18,79,73,7,3,0],
[0,0,0,10,30,77,74,57,39,12,49,60,12,52,60,18,52,53,18,52,53,18,49,53,18,49,53,18,49,53,15,49,53,15,49,53,15,61,53,15,61,53,15,49,53,15,49,53,15,61,53,15,49,53,15,61,78,15,61,78,15,61,78,14,61,78,14,61,78,14,68,78,14,68,69,15,79,73,7,3,0],
[0,0,0,10,30,77,74,57,39,18,49,53,18,49,53,18,49,53,15,49,53,15,49,53,15,61,53,15,61,53,15,61,53,15,61,53,15,61,78,15,61,78,15,49,78,15,49,78,15,61,78,14,54,78,14,61,78,14,54,78,14,54,78,14,54,78,13,54,78,13,68,78,13,68,80,15,79,73,7,3,0],
[0,0,0,10,30,64,74,57,43,15,49,53,15,49,53,15,61,53,15,49,53,15,49,53,15,61,53,15,61,78,15,61,78,15,61,78,15,61,78,14,61,78,14,54,78,14,54,78,14,54,78,14,68,78,13,54,78,13,68,78,13,68,78,13,68,78,16,68,78,16,68,78,16,68,80,15,79,73,7,3,0],
[0,0,0,10,30,64,74,50,43,15,49,53,15,49,53,15,61,53,15,49,78,15,49,78,15,61,78,15,61,78,14,61,78,14,61,78,14,54,78,14,54,78,14,68,78,13,54,78,13,68,81,13,68,78,16,68,78,16,68,81,16,68,81,16,68,81,16,68,82,16,68,81,66,68,80,15,79,73,7,3,0],
[0,0,0,10,30,64,74,59,43,15,49,78,15,49,78,15,61,78,15,54,78,14,83,78,14,68,78,14,68,78,14,54,78,13,54,78,13,68,78,16,68,78,16,68,81,16,54,81,16,68,81,16,51,81,16,54,81,66,75,81,66,68,81,66,68,81,66,68,82,66,68,81,66,53,80,14,79,73,7,3,0],
[0,0,0,10,30,64,74,59,43,14,54,78,14,54,78,13,54,78,14,54,78,14,61,78,13,68,78,13,54,78,16,54,78,16,54,78,16,68,78,16,68,78,16,68,81,66,40,81,66,75,81,66,83,81,66,68,81,66,53,81,66,68,81,66,53,81,66,53,82,74,53,81,74,53,80,14,79,73,7,3,0],
[0,0,0,10,30,64,74,59,43,13,54,78,13,68,81,16,68,81,16,68,78,13,84,78,16,54,81,16,54,81,16,54,81,16,54,78,66,54,78,66,68,78,66,68,81,66,75,81,66,40,81,66,62,81,66,68,81,74,75,81,74,53,81,74,53,81,74,53,85,74,53,85,74,53,80,13,79,73,7,3,0],
[0,0,0,10,30,20,74,59,43,16,54,78,16,68,81,16,68,81,16,68,81,66,75,81,66,54,81,66,75,81,66,55,81,66,55,86,66,55,78,66,55,86,66,55,87,66,75,43,74,53,85,74,88,85,74,68,81,74,75,85,74,55,85,74,55,85,74,55,85,89,55,85,89,78,90,16,79,77,7,3,0],
[0,0,0,10,30,20,74,59,86,16,54,81,66,68,81,66,68,81,16,68,81,66,75,81,66,68,81,66,75,81,66,53,81,74,53,43,74,53,86,74,53,53,66,53,91,74,75,92,74,32,53,74,35,86,74,68,93,89,78,85,89,55,85,89,55,85,89,78,93,89,55,85,89,78,90,16,79,77,7,3,0],
[0,0,0,10,30,20,74,59,86,66,68,81,66,68,81,66,53,81,66,53,81,74,39,81,74,55,81,74,39,81,74,68,85,74,53,94,89,53,94,89,53,95,89,53,96,89,97,98,89,99,100,89,101,86,74,102,93,89,75,85,89,78,85,89,78,85,89,78,93,89,78,85,89,78,90,66,79,77,7,3,0],
[0,0,0,10,30,20,89,59,86,74,75,81,74,53,81,74,53,81,74,53,85,89,53,85,103,55,85,104,51,85,104,53,85,103,78,93,104,78,85,89,78,105,89,78,106,89,68,107,89,99,108,89,109,85,89,110,85,89,82,93,89,78,85,103,78,85,103,78,93,103,78,85,103,78,90,66,79,77,7,3,0],
[0,0,0,10,30,20,89,59,85,74,75,85,74,55,85,74,55,85,74,55,85,15,97,85,10,68,85,10,105,85,10,111,85,10,111,112,10,111,48,10,111,113,89,111,96,89,114,113,89,115,113,89,113,85,103,110,85,103,42,93,103,78,85,103,78,85,103,78,93,116,78,85,116,78,90,66,79,77,7,3,0],
[0,0,0,10,30,20,89,61,85,89,53,85,89,55,85,89,55,85,89,55,85,15,55,85,117,78,85,117,98,85,117,98,85,117,98,85,117,98,118,117,98,98,103,98,98,103,54,96,103,115,106,103,98,112,116,119,93,116,42,120,116,78,120,116,82,120,116,82,120,116,82,120,116,94,121,74,79,77,7,3,0],
[0,0,0,10,30,20,89,61,122,89,53,85,89,78,85,89,78,85,89,78,93,15,78,93,117,78,93,117,98,93,117,106,93,117,113,93,117,113,123,117,113,113,103,113,106,103,75,106,103,115,124,116,125,118,116,119,126,116,82,120,116,82,120,116,82,120,127,82,128,127,94,120,127,94,121,74,79,77,7,3,0],
[0,0,0,10,30,20,89,68,122,89,78,85,89,78,85,103,78,85,103,78,93,14,82,93,117,78,93,65,98,93,117,98,120,117,113,118,117,129,100,117,111,125,116,111,125,116,75,111,116,115,129,127,113,130,127,119,93,127,82,120,127,82,120,127,82,120,127,82,128,127,94,120,127,85,121,89,79,77,7,3,0],
[0,0,0,10,30,77,89,68,122,103,78,85,103,78,85,103,78,85,103,78,93,14,82,120,117,78,120,37,98,120,131,132,120,34,133,112,34,134,95,131,133,135,127,133,125,127,97,125,127,115,111,127,113,136,127,137,138,127,82,128,139,85,120,127,85,128,139,85,128,139,94,128,139,85,121,89,79,77,7,3,0],
[0,0,0,10,30,77,89,68,122,116,78,120,116,78,120,116,78,120,116,82,120,13,94,120,117,78,120,116,111,122,127,111,122,127,140,128,139,140,92,127,140,111,127,140,111,139,39,111,139,141,135,139,135,142,139,143,138,139,82,128,139,85,128,144,85,145,144,85,145,146,85,145,146,147,148,89,79,77,7,3,0],
[0,0,0,10,30,77,89,68,138,116,81,120,116,82,120,116,82,120,127,82,120,13,94,120,117,81,120,127,111,138,139,135,145,139,94,149,139,81,132,144,81,125,139,81,111,139,85,111,139,141,111,144,132,93,139,143,145,146,85,128,146,85,145,146,85,145,146,85,145,146,85,145,146,147,148,89,79,77,7,3,0],
[0,0,0,10,30,77,89,62,150,127,81,120,127,82,120,127,82,120,127,82,128,16,94,128,117,81,128,127,111,128,139,113,122,139,81,87,139,85,105,144,85,101,144,85,151,146,85,135,144,123,132,146,111,93,146,143,130,146,85,145,146,85,145,146,85,145,152,85,145,146,85,145,109,147,148,103,79,77,7,3,0],
[0,0,0,10,30,77,89,62,150,127,81,128,127,82,128,139,82,128,139,82,128,66,94,128,117,81,128,127,151,138,144,105,150,144,147,123,144,85,101,144,85,91,111,85,151,153,85,151,109,141,111,146,101,122,152,143,130,129,85,145,154,85,145,155,85,145,109,85,130,109,120,156,109,147,157,116,79,73,7,3,0],
[0,0,0,10,30,77,89,62,150,144,85,128,139,85,128,144,85,145,144,85,145,66,93,145,65,94,145,139,151,158,146,155,138,146,147,159,146,85,132,146,93,132,131,93,151,20,120,151,155,123,153,146,151,150,109,160,145,116,85,145,131,85,156,66,85,158,109,85,130,129,120,156,129,120,157,116,79,73,7,3,0],
[0,0,0,10,30,77,89,78,150,144,85,145,144,85,145,144,85,145,146,85,145,66,93,145,117,85,145,139,151,145,146,155,118,152,93,155,109,122,155,109,85,154,12,85,92,117,120,151,13,123,151,129,151,156,129,160,161,10,85,161,117,93,156,146,120,161,111,120,130,129,120,156,129,120,157,116,79,73,7,3,0],
[0,0,0,10,30,77,89,78,158,146,85,145,146,85,145,146,85,145,109,85,145,74,147,145,117,85,145,146,151,149,109,151,123,109,85,153,109,85,159,109,85,162,163,138,164,165,156,154,65,166,154,163,167,168,163,169,170,165,161,171,6,161,171,154,161,172,129,145,173,129,120,156,129,147,157,174,79,73,7,3,0],
[0,0,0,10,30,77,89,42,158,109,85,145,109,93,145,109,93,145,109,85,138,74,147,145,165,85,156,109,151,63,129,153,175,129,85,92,91,130,176,163,177,170,178,177,173,7,179,180,3,181,167,178,167,148,178,169,141,7,182,171,0,161,171,154,177,171,178,183,171,163,173,171,155,156,184,127,79,73,7,3,0],
[0,0,0,10,30,77,89,42,158,109,85,161,109,85,145,109,122,156,129,122,158,74,120,161,117,93,138,91,91,185,186,92,154,187,188,133,187,168,189,178,173,171,178,173,173,65,161,100,7,181,154,190,167,183,190,169,141,3,182,171,73,177,171,154,177,171,163,177,171,163,177,171,163,191,184,144,79,73,7,3,0],
[0,0,0,10,30,77,89,42,158,129,122,130,129,122,161,129,122,156,129,120,150,89,128,179,0,145,123,34,154,192,20,154,133,20,193,192,20,159,189,154,159,141,154,159,171,37,161,188,7,166,163,163,167,177,153,169,171,7,161,171,139,177,171,91,177,171,155,177,171,163,177,171,163,191,184,144,76,73,7,3,0],
[0,0,0,10,30,77,89,42,158,129,122,161,129,122,161,129,120,130,129,120,172,103,161,194,27,161,195,10,92,92,3,154,196,3,197,198,3,199,171,91,167,172,163,133,171,111,161,161,10,166,200,14,167,141,20,169,171,10,161,171,154,161,171,154,161,171,163,161,171,91,161,171,153,161,184,144,76,73,7,3,0],
[0,0,0,10,30,77,89,86,183,129,122,161,129,122,130,129,120,172,163,173,173,103,177,201,7,177,200,7,154,167,7,154,154,3,167,142,3,154,171,163,197,173,163,163,202,190,156,172,10,203,154,6,167,181,117,169,171,0,161,172,178,161,172,91,161,172,163,161,172,163,161,188,163,161,184,144,76,73,7,3,0],
[0,0,0,10,30,77,89,42,183,129,93,145,129,130,172,163,177,172,163,177,141,103,183,159,7,161,200,6,154,154,0,167,154,4,163,177,0,154,171,163,163,189,163,133,171,154,177,172,6,203,204,6,154,201,3,169,173,10,161,172,163,161,172,163,161,172,163,161,172,163,161,171,163,161,184,144,76,73,7,3,0],
[0,0,0,10,30,77,103,82,183,129,128,172,91,177,172,163,177,172,163,177,177,103,161,167,7,161,200,15,154,154,205,167,167,205,206,161,205,178,173,129,178,171,163,133,189,154,161,172,165,166,196,8,154,175,10,169,173,74,161,172,163,161,172,163,161,172,163,161,172,163,161,188,163,161,184,144,76,73,7,3,0],
[0,0,0,10,30,20,103,82,207,91,183,172,163,183,172,163,161,172,163,161,208,103,161,200,7,161,199,155,154,175,163,175,167,163,209,208,163,82,171,163,78,171,91,82,202,163,145,173,116,166,154,8,167,199,10,169,172,155,161,172,163,130,172,153,130,172,153,130,172,153,161,188,163,161,184,210,76,73,7,3,0],
[0,0,0,10,30,73,103,120,189,163,177,172,153,183,172,163,161,172,163,161,123,103,161,175,7,161,167,163,163,167,133,92,154,154,158,189,154,161,188,163,161,202,163,161,172,163,156,173,187,166,154,8,167,134,10,169,161,159,161,173,153,161,172,153,161,211,153,161,173,153,161,211,163,161,212,146,76,73,7,3,0],
[0,0,0,10,30,73,103,128,189,163,130,172,163,130,172,163,161,172,163,130,181,103,161,167,7,161,175,155,154,200,163,178,178,163,130,213,163,145,202,154,156,172,153,161,172,163,156,208,187,166,133,4,167,167,10,214,188,186,156,171,163,145,172,153,145,172,153,145,173,153,161,211,163,161,212,146,79,73,7,3,0],
[0,0,0,10,30,73,103,93,189,163,177,172,163,161,172,163,130,172,163,161,215,103,161,167,10,130,175,111,154,200,153,178,167,153,156,193,153,130,216,163,130,211,91,130,172,91,156,188,131,203,196,7,154,154,10,214,217,139,156,171,91,145,172,153,145,172,153,145,173,153,161,173,163,161,212,218,79,73,7,3,0],
[0,0,0,10,30,73,116,128,189,91,130,172,163,161,172,163,161,173,163,161,123,103,156,219,10,130,175,155,200,200,153,200,200,153,130,154,153,161,161,153,161,172,155,145,158,133,156,201,117,220,200,3,154,154,10,214,133,0,156,183,153,145,173,91,145,173,91,145,173,91,145,211,91,161,212,218,79,73,7,3,0],
[0,0,0,10,30,73,103,120,189,163,130,172,153,161,173,163,161,173,163,161,126,103,156,219,8,161,175,155,154,200,163,163,200,153,156,154,153,156,100,91,161,161,163,145,208,133,156,175,6,220,154,7,154,154,10,214,200,65,156,156,154,145,211,91,145,211,91,145,173,91,145,211,91,156,212,218,79,73,7,3,0],
[0,0,0,10,30,73,116,120,189,163,161,172,91,145,173,155,145,173,153,145,208,103,145,133,8,145,200,155,154,200,153,200,200,153,145,221,153,145,193,91,145,215,163,145,222,190,156,175,3,203,196,13,200,200,65,214,204,3,145,173,178,145,211,153,145,211,153,145,173,91,145,173,91,156,212,223,79,73,7,3,0],
[0,0,0,10,30,73,116,120,189,163,161,173,91,145,173,163,145,173,91,145,173,103,145,159,10,156,175,155,199,200,91,200,200,91,145,199,91,145,200,163,145,180,155,145,175,89,156,133,3,220,154,129,167,167,0,214,167,3,156,185,178,145,211,155,145,173,91,145,173,155,145,173,91,156,212,223,79,73,7,3,0],
[0,0,0,10,30,77,116,120,189,163,145,173,91,145,173,163,145,173,163,145,173,103,145,221,10,145,200,155,175,175,91,200,200,91,145,199,91,145,167,155,145,200,163,145,219,65,156,219,3,220,221,154,167,167,116,214,167,3,156,213,15,145,173,154,145,173,163,145,173,91,128,173,91,156,224,107,79,73,7,3,0],
[0,0,0,10,30,77,116,120,207,163,145,173,91,145,173,91,145,173,163,145,211,103,145,142,10,150,225,111,200,186,91,200,92,91,145,125,91,145,186,163,145,200,163,145,197,165,149,199,165,220,197,178,200,200,190,214,167,3,145,175,65,145,173,163,145,173,155,145,183,155,128,173,91,149,224,107,79,73,7,3,0],
[0,0,0,10,30,77,116,120,207,163,145,173,91,145,173,91,145,173,91,145,179,103,145,183,10,138,226,111,200,227,91,200,93,91,145,150,91,145,176,163,145,133,186,145,175,3,149,219,117,220,200,153,200,200,200,214,175,165,145,169,165,145,183,163,145,173,155,145,183,91,128,173,91,149,224,107,79,73,7,3,0],
[0,0,0,10,30,77,116,120,207,153,145,173,91,145,173,91,145,173,91,145,173,89,145,173,10,138,168,155,178,207,91,200,173,91,145,179,91,145,182,163,145,162,109,145,175,4,149,154,15,220,221,153,200,200,163,214,154,165,145,198,6,145,183,190,138,183,163,138,183,91,128,173,91,149,224,107,79,73,7,3,0],
[0,0,0,10,30,77,116,120,207,153,145,173,91,145,173,91,145,173,91,145,173,89,145,177,165,138,182,129,159,183,91,178,177,91,145,173,91,145,183,91,145,179,7,145,124,65,149,200,109,220,175,155,175,175,163,214,154,7,145,136,117,138,183,109,138,183,155,138,183,155,128,173,91,138,224,107,79,73,7,3,0],
[0,0,0,10,30,77,116,120,207,153,145,173,91,145,173,155,145,173,163,145,179,139,138,173,15,138,168,129,159,182,91,190,173,91,145,194,91,145,173,163,145,179,11,145,63,15,149,200,163,166,196,153,159,167,91,214,200,127,138,126,15,138,183,15,138,183,155,138,183,91,128,173,91,138,224,107,79,73,7,3,0],
[0,0,0,10,30,77,174,147,207,153,138,173,91,138,173,155,138,173,91,138,173,91,138,173,163,138,183,155,82,183,155,78,183,155,145,211,155,138,158,155,138,179,155,138,191,153,138,206,155,85,200,155,55,175,155,94,192,91,138,158,163,138,183,155,138,156,155,138,183,155,138,177,132,138,224,107,79,73,7,3,0],
[0,0,0,10,30,77,174,147,179,155,138,183,155,138,183,155,138,183,155,138,183,155,138,161,155,138,150,155,120,177,155,120,177,155,138,161,155,138,183,155,138,177,155,138,177,155,120,188,155,138,175,111,120,178,111,120,95,155,138,158,155,120,194,111,120,161,111,120,161,111,122,161,132,138,224,223,79,73,7,3,0],
[0,0,0,10,30,77,174,147,179,111,122,161,111,138,161,111,138,161,111,138,194,111,138,182,111,120,177,111,120,161,111,120,161,129,120,161,129,138,177,129,138,194,129,138,158,129,120,145,129,120,135,129,120,200,129,120,120,129,138,194,129,120,208,129,120,161,129,120,161,129,122,161,113,122,148,223,79,73,7,3,0],
[0,0,0,10,30,77,174,86,183,129,122,161,129,138,161,129,138,161,129,138,161,129,138,161,129,120,161,129,120,161,129,120,161,129,120,161,129,138,161,129,138,161,129,138,161,129,120,158,129,120,85,129,120,82,129,147,158,129,147,161,129,120,161,129,120,161,129,120,161,129,122,161,113,122,148,223,79,73,7,3,0],
[0,0,0,10,30,77,174,86,183,129,122,161,129,138,161,129,138,161,129,138,161,129,138,161,129,120,161,109,120,161,129,120,161,129,120,161,109,147,161,109,147,161,109,147,161,109,120,158,109,120,145,109,120,145,109,120,161,109,120,161,109,120,161,109,120,161,109,120,161,109,122,161,96,122,148,218,79,73,7,3,0],
[0,0,0,10,30,77,174,86,183,109,122,161,109,147,161,109,147,161,109,147,161,109,147,161,109,120,161,109,120,161,109,85,161,109,120,161,109,147,161,109,147,161,109,147,161,109,147,158,109,120,161,109,85,156,109,147,145,109,120,161,109,147,161,109,147,161,109,147,156,109,122,161,152,147,148,218,79,73,7,3,0],
[0,0,0,10,30,77,174,86,158,109,85,156,109,147,156,109,147,156,109,147,156,109,147,156,109,85,156,109,85,156,109,85,156,152,120,156,152,147,156,109,147,156,109,147,156,152,147,161,152,120,145,146,85,145,152,147,161,146,147,145,146,85,145,146,85,145,146,85,145,146,122,130,152,147,148,218,79,73,7,3,0],
[0,0,0,10,30,77,174,86,158,146,85,145,146,147,145,146,147,145,146,147,145,146,85,145,146,85,145,146,85,145,146,85,145,146,147,145,146,147,145,146,147,145,146,147,145,146,147,161,146,85,130,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,146,147,161,146,147,148,210,79,73,7,3,0],
[0,0,0,10,30,77,174,42,158,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,146,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,120,145,146,147,121,144,79,73,7,3,0],
[0,0,0,10,30,77,174,86,158,146,93,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,144,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,93,121,144,79,73,7,3,0],
[0,0,0,10,30,77,174,86,158,144,147,145,144,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,85,145,139,81,145,139,93,158,144,228,73,7,3,0],
[0,0,0,10,30,77,174,43,149,139,93,145,139,85,145,139,85,145,139,85,145,139,85,145,127,85,145,127,85,138,127,85,138,127,85,138,127,85,138,127,85,138,127,85,145,127,85,138,127,85,138,127,85,145,127,85,145,127,85,145,127,85,145,127,85,145,127,85,138,127,85,145,127,93,158,144,228,73,7,3,5],
[0,0,0,10,30,19,174,62,158,127,94,145,127,85,145,127,85,145,127,85,145,127,85,145,127,85,145,127,85,126,127,85,126,127,85,126,127,85,126,127,85,126,127,85,145,127,85,126,127,85,126,127,85,138,127,85,138,127,85,145,127,85,145,127,85,145,127,85,128,127,93,145,116,94,158,127,228,73,7,3,5],
[0,0,0,3,30,64,127,78,158,127,94,145,127,85,145,127,85,145,127,85,145,127,85,145,127,85,145,127,85,128,127,85,128,127,85,128,116,85,128,116,85,128,116,85,145,116,81,128,116,81,128,116,81,128,116,81,128,116,81,145,116,81,145,116,81,145,116,81,128,116,94,122,116,85,158,127,12,73,7,3,5],
[0,0,0,3,27,77,104,84,158,116,94,138,116,81,138,116,81,138,116,81,138,116,81,138,116,81,138,116,81,138,116,85,138,116,85,138,116,85,138,116,85,138,116,85,138,116,81,138,116,81,138,116,81,128,116,81,128,116,81,145,116,81,145,116,81,145,116,81,118,116,94,145,116,86,80,174,70,73,7,6,6],
[0,0,0,3,27,64,13,229,93,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,103,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,128,116,81,120,116,81,120,116,81,120,116,81,128,116,85,85,103,86,59,116,64,73,7,4,4],
[0,0,0,6,7,64,11,113,230,127,86,122,127,86,122,116,86,122,116,86,138,116,86,138,116,86,138,116,86,122,116,86,122,116,86,150,116,86,150,116,86,150,116,86,122,116,86,150,116,86,150,116,86,150,116,86,150,116,86,120,116,86,120,116,86,120,116,86,80,116,85,150,116,83,231,66,34,27,10,4,0],
[0,0,0,0,7,46,34,18,232,116,233,233,74,234,233,89,234,233,89,234,233,89,234,233,89,234,233,89,234,235,89,234,235,89,234,235,89,234,235,89,234,235,89,234,235,89,84,235,89,84,235,89,84,235,89,84,235,89,84,235,89,84,235,89,84,235,89,84,235,89,236,233,116,237,238,11,73,27,10,0,165],
[0,0,0,0,3,7,73,70,70,13,144,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,210,174,139,144,174,139,144,174,139,144,239,139,144,239,139,144,239,139,210,239,139,210,239,139,210,174,139,210,116,89,15,11,131,46,9,6,0,0],
[0,0,0,0,6,10,27,73,131,11,12,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,79,18,11,34,131,30,7,3,4,0,0],
[0,0,0,0,0,6,10,7,30,73,131,131,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,131,131,131,73,27,9,4,4,0,0,0],
[0,0,0,0,0,0,6,3,3,7,71,27,27,30,30,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,30,30,27,27,7,10,10,10,0,0,0,0],
[0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,5,5,0,1,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,0,0,0,0]],
[0xffefefef,
0xfff8eeef,
0xffe9f4ee,
0xffe6e6e6,
0xffedeee9,
0xffe9f0e8,
0xffe8e7ec,
0xffdedede,
0xffdee3df,
0xffe4dee0,
0xffe4e2e5,
0xffadadad,
0xffa5a5a5,
0xff868789,
0xff8c8c8c,
0xff999999,
0xff848484,
0xff8c8482,
0xffa0a39d,
0xffc5d4cf,
0xffc5c5c5,
0xfffe9fb3,
0xfffd7584,
0xfffd92a5,
0xfffe748d,
0xfffd8d9f,
0xffff6b84,
0xffd6d6d6,
0xfffe849d,
0xffff667d,
0xffd3d2d0,
0xffa38a8b,
0xfff54162,
0xfff53b52,
0xffb8bab9,
0xfff8435a,
0xfff33b4d,
0xffb5b5b5,
0xfff63f55,
0xffef3a51,
0xfff04054,
0xffec3b4b,
0xffde3a45,
0xffe63349,
0xffec637c,
0xffec9fa1,
0xffccd4d6,
0xfff8aeb7,
0xffed2f4b,
0xffef485a,
0xfff54a65,
0xffef3d57,
0xfff04a62,
0xffe63a50,
0xffe6425a,
0xffdf3f4c,
0xffff3658,
0xfffb536a,
0xffe0e6e6,
0xfff64a5c,
0xffed3e4d,
0xffed4459,
0xffe73b4b,
0xffde2240,
0xffbdc7c6,
0xfff7f7f7,
0xff7b7b7b,
0xffff5c74,
0xffe74252,
0xffde243b,
0xffaab2b4,
0xffcfd4ce,
0xfff7e8ef,
0xffcccccc,
0xff737373,
0xffdf4150,
0xff9ca8a9,
0xffc4cdc8,
0xffde394a,
0xff9ca5a5,
0xffd62036,
0xffde3449,
0xffd73a48,
0xffe4485a,
0xffd74c53,
0xffd63141,
0xffde3242,
0xffe7303d,
0xffe33f46,
0xff666666,
0xffcc1b2d,
0xff292426,
0xff29221c,
0xffce3341,
0xffd63944,
0xff3a1f12,
0xff413036,
0xffd53f4b,
0xff3b3630,
0xff993333,
0xff631a1b,
0xff3a2222,
0xff693228,
0xff5e6060,
0xff5d605e,
0xff2b3328,
0xff3a3428,
0xff333c3a,
0xff183426,
0xff3a3a3a,
0xff5c372e,
0xff312e29,
0xffd82a43,
0xff3b2f31,
0xffd94360,
0xffa6293b,
0xff5a5a5a,
0xffffffff,
0xffd12942,
0xff573337,
0xffce303b,
0xffc71829,
0xffd42b3c,
0xff9c212e,
0xff432b2c,
0xff3c2a2e,
0xffc5293f,
0xff525252,
0xffc72e3a,
0xff333333,
0xffbd2b38,
0xffbcbebd,
0xff31282b,
0xff191e1a,
0xff192521,
0xff3a2828,
0xffb23641,
0xff543034,
0xffce2a3b,
0xff4a4a4a,
0xffe1485a,
0xffa52230,
0xffbc303d,
0xff522d2f,
0xff454948,
0xffc52a39,
0xff424242,
0xffd6313c,
0xffbe1929,
0xffce2930,
0xffcd2536,
0xff302822,
0xff443b3e,
0xff242720,
0xff201f1b,
0xff292929,
0xffc52831,
0xffbb1223,
0xffc52231,
0xff101710,
0xff522a2a,
0xffbd2831,
0xffc33b4d,
0xff212121,
0xff632834,
0xfff1f2f4,
0xff8a1f29,
0xff281a19,
0xffb52129,
0xff422321,
0xffa61922,
0xffa7212a,
0xffad2129,
0xffb5212f,
0xff515a5a,
0xff201812,
0xffab2f3d,
0xffb52932,
0xff191919,
0xffbc222a,
0xff181b0d,
0xff841b24,
0xffb8282b,
0xffbd2131,
0xffa50e1a,
0xff7b1d1e,
0xff070707,
0xff000000,
0xffad2134,
0xffad1b28,
0xff101010,
0xffba282b,
0xff0e1508,
0xff06100a,
0xffbd2438,
0xff071204,
0xff2b1720,
0xff221921,
0xff7a2c31,
0xff1d1e10,
0xff211718,
0xff431212,
0xffa5282e,
0xff8a1a26,
0xff2a1e20,
0xffa2a49f,
0xff151a0c,
0xffb61c28,
0xffc5233a,
0xffd83b54,
0xff3f4842,
0xffb0292f,
0xffad111f,
0xff541615,
0xff482221,
0xff73161b,
0xffaa201e,
0xff2e1108,
0xff3a4340,
0xff271219,
0xff921c28,
0xff291611,
0xff2d1108,
0xff363f3b,
0xffb51423,
0xff04100a,
0xff8d2c3b,
0xff923438,
0xff95aba8,
0xffdc5a5e,
0xffb6555c,
0xff763536,
0xff685c56,
0xffc74c59,
0xffd94f56,
0xffc74a55,
0xffdb4c62,
0xff6a403d,
0xff848f85,
0xff4e5a58,
0xffe9eef1]
);
}
public function moveSlit(e:MouseEvent){
slitSprite.x = -Math.floor(mouseX/5)+45
}
}
}
/**-----------------------------------------------------
* Use following BitmapPatternBuilder class
*
* DO NOT CHANGE any codes below this comment.
*
* -----------------------------------------------------
*/
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Graphics;
class BitmapPatternBuilder{
/**
* creates BitmapData filled with dot pattern.
* First parameter is 2d array that contains color index for each pixels;
* Second parameter contains color reference table.
*
* @parameter pattern:Array 2d array that contains color index for each pixel.
* @parameter colors:Array 1d array that contains color table.
* @returns BitmapData
*/
public static function build(pattern:Array, colors:Array):BitmapData{
var bitmapW:int = pattern[0].length;
var bitmapH:int = pattern.length;
var bmd:BitmapData = new BitmapData(bitmapW,bitmapH,true,0x000000);
for(var yy:int=0; yy<bitmapH; yy++){
for(var xx:int=0; xx<bitmapW; xx++){
var color:int = colors[pattern[yy][xx]];
bmd.setPixel32(xx, yy, color);
}
}
return bmd;
}
/**
* short cut function for Graphics.beginBitmapFill with pattern.
*/
public static function beginBitmapFill(pattern:Array, colors:Array, graphics:Graphics):void{
var bmd:BitmapData = build(pattern, colors);
graphics.beginBitmapFill(bmd);
bmd.dispose();
}
}