forked from: doraを描いてみた
// forked from chabudai's doraを描いてみた
package {
import flash.display.*;
[SWF(width="465", height="465", backgroundColor="0x000000")]
public class Dora extends Sprite {
private var d:Vector.<Number> = Vector.<Number>("!%/-Ù/ÝÛÏÑ#Ï!)-LJÑLÕÓÎÐ+Î)\\L]:m9}:~L}^m_]^\\LL:9¡:¢L¡^_^Lt`uXWX`hiuht`~[~¯AO¯¯¯¯½_e9_]m7m_u9{eÅ_¡mÇmuÅ{".split('').map(function(c:String,i:int,a:Array):Number{return (c.charCodeAt(0)-127)/2}));
private var c:Vector.<int> = Vector.<int>([1, 3, 3, 3, 3, 1, 3, 3, 3, 3, 1, 3, 3, 3, 3, 1, 2, 1, 3, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]);
public function Dora() {
x = y = 465 / 2;
graphics.drawGraphicsData(Vector.<IGraphicsData>([new GraphicsSolidFill(0x6600CC), new GraphicsPath(c.slice(0, 5), d.slice(0, 18)), new GraphicsSolidFill(0x000000), new GraphicsPath(c.slice(0, 5), d.slice(18, 36)), new GraphicsSolidFill(0xFFFFFF), new GraphicsPath(c.slice(0, 15), d.slice(36, 90), "nonZero"), new GraphicsEndFill(), new GraphicsStroke(1, false, "normal", "none", "round", 1, new GraphicsSolidFill(0xFFFFFF)), new GraphicsPath(c.slice(15, 32), d.slice(90, 128))]));
}
}
}