ー
月刊 Web Designing vol.102
連載:エキソニモのVIEW-SOURCEより続きです。
オンライン板: http://exonemo.com/view-source/
psyarkへの質問
「“ー”で思いつくことはなんですか?」
ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ
ᅳ-ᅳ-ー-ㅡ-ᐨᐨ-ー-ᅳ-ᅳ-ᅳ-ᅳ-一-ㅡ-ㅡ-ㅡ-一-ㅡ-ㅡ-ㅡ
一-ㅡ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ
ー-ㅡ-ᐨᐨ-ー-ㅡ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ
ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ー-ㅡ-ᐨᐨ-ー-ᅳ-一-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ
ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー
ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ー-ㅡ-ᐨᐨ-ー-ㅡ-ㅡ-一-ー-ᅳ
ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ー-ㅡ-ᐨᐨ-ー-ᅳ-ᅳ
ᅳ-一-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ
ᅳ-ー-ㅡ-ᐨᐨ-ー-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ㅡ-ㅡ-ー-ㅡ-ᐨᐨ-ー-一
その他の質問: http://wonderfl.net/user/ViewSource/codes
// forked from psyark's ParallelLife
// forked from psyark's forked from: convolution_life
//
/* 月刊 Web Designing vol.102
連載:エキソニモのVIEW-SOURCEより続きです。
オンライン板: http://exonemo.com/view-source/
psyarkへの質問
「“ー”で思いつくことはなんですか?」
ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ
ᅳ-ᅳ-ー-ㅡ-ᐨᐨ-ー-ᅳ-ᅳ-ᅳ-ᅳ-一-ㅡ-ㅡ-ㅡ-一-ㅡ-ㅡ-ㅡ
一-ㅡ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ
ー-ㅡ-ᐨᐨ-ー-ㅡ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ
ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ー-ㅡ-ᐨᐨ-ー-ᅳ-一-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ
ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー
ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ー-ㅡ-ᐨᐨ-ー-ㅡ-ㅡ-一-ー-ᅳ
ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ᅳ-ー-ㅡ-ᐨᐨ-ー-ᅳ-ᅳ
ᅳ-一-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-ㅡ-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ᅳ-ᅳ
ᅳ-ー-ㅡ-ᐨᐨ-ー-一-ー-ᅳ-ᅳ-ᅳ-ᅳ-ᐨ-ー-ㅡ-ㅡ-ー-ㅡ-ᐨᐨ-ー-一
その他の質問: http://wonderfl.net/user/ViewSource/codes
*/
package {
import flash.display.*;
import flash.filters.ConvolutionFilter;
import flash.geom.ColorTransform;
import flash.net.URLRequest;
import flash.system.*;
[SWF(width=465,height=465,frameRate=10,backgroundColor=0x333333)]
public class ExonemoViewSource extends Sprite {
public function ExonemoViewSource() {
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener("complete", function ():void {
field.draw(loader);
stage.addEventListener("enterFrame", function ():void {
field.applyFilter(field, field.rect, field.rect.topLeft, step);
field.paletteMap(field, field.rect, field.rect.topLeft, ruleR, ruleG, ruleB, null);
});
});
var url:String = "http://assets.wonderfl.net/images/related_images/8/82/8280/8280b4c2701b7f5a8a72acdf00e807008f821337";
loader.load(new URLRequest(url),new LoaderContext(true));
var field:BitmapData = new BitmapData(465,465, true, 0);
var step:ConvolutionFilter = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 9, 1, 1, 1, 1], 0xFF, 0);
var ruleR:Array = [0, 0, 0, 0xFF0000, 0, 0, 0, 0, 0, 0, 0, 0xFF0000, 0xFF0000];
var ruleG:Array = [0, 0, 0, 0x00FF00, 0, 0, 0, 0, 0, 0, 0, 0x00FF00, 0x00FF00];
var ruleB:Array = [0, 0, 0, 0x0000FF, 0, 0, 0, 0, 0, 0, 0, 0x0000FF, 0x0000FF];
addChild(new Bitmap(field));
}
}
}