forked from: forked from: forked from: forked from: Hello, World!
@see http://wonderfl.net/code/251126ddfa2b8b98b3647bf6561af24560192dc1
@author kobayashi-taro
/**
* Copyright hacker_gqw_rkd7 ( http://wonderfl.net/user/hacker_gqw_rkd7 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/pImE
*/
// forked from hacker_gqw_rkd7's forked from: forked from: forked from: Hello, World!
// forked from hacker_gqw_rkd7's forked from: forked from: Hello, World!
// forked from esabear's forked from: Hello, World!
package
{
import flash.display.BitmapData;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.Event;
import org.papervision3d.materials.BitmapMaterial;
import org.papervision3d.objects.primitives.Sphere;
import org.papervision3d.view.BasicView;
/**
* @see http://wonderfl.net/code/251126ddfa2b8b98b3647bf6561af24560192dc1
* @author kobayashi-taro
*/
public class HelloWorld3D extends BasicView
{
private var b:Sphere;
public function HelloWorld3D()
{
helloWorld
([[]])([[[
[[]]]]])([[]])([[[[[
[[[[[[]]]]]]]]]]])([[]])([
[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]
]]]]]]]]]]]]]]]]])([])([])([[[]]])
([])([[[[[[[[[]]]]]]]]])([[[[[[[[[[[[[
]]]]]]]]]]]]])([])([[[[]]]])([[[]]])([[[
[]]]])([])([[[[[[[[[[[[[[[]]]]]]]]]]]]]]])([
[[[[[[[]]]]]]]])([])([[[[[[[[[]]]]]]]]])([[[[[
[[[[[[[[[]]]]]]]]]]]]]])([])([])([[[[[[]]]]]])([
])([])([[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]])([[[]]])
([])([[[[]]]])([[[]]])([[[[[[[]]]]]]])([[[[[[]]]]]])
([[[]]])([[[[[]]]]])([[[[[[[[[[[[[[[]]]]]]]]]]]]]]])
([])([[]])([[[]]])([[[]]])([[]])([[[[[[[[[[[]]]]]]]]]]
])([])([[[[[]]]]])([])([[]])([[[[]]]])([[[[[[[[[[[[[[[[[
[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]])([])([[]])([[]])([[[]]])([[[[[[[]]]]]]])([[[[[
[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]])([[[]]])
([[[[[[[[[[[[]]]]]]]]]]]])([])([[[]]])([[]])([[]])([[[[[[]]]
]]])([])([])([[]])([])([[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]])
([])([])([])([])([[[[[]]]]])([[]])([[]])([[[[[[[]]]]]]])([[[]]
])([[]])([[[[[[[[[]]]]]]]]])([])([[[]]])([[[[[[[[[[[[[[[[[[[[[]]
]]]]]]]]]]]]]]]]]]])([[]])([])([[[[[]]]]])([])([[[[[]]]]])([[[[[
[[[[[[[]]]]]]]]]]]])([[[[[[[[[[]]]]]]]]]])([[[[[[[[[[[[[[[[[[[[[
[[]]]]]]]]]]]]]]]]]]]]]]])([[[[[[[[[[[[[[[]]]]]]]]]]]]]]])([[[[[[[
[[[]]]]]]]]]])([])([])([[[[[[[[[]]]]]]]]])([[[[[[[[[[[[[[[[[[[[[[]
]]]]]]]]]]]]]]]]]]]]])([[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]])([[[[[[[[[
[]]]]]]]]]])([[[[[[[[[[]]]]]]]]]])([[[]]])([])([[[[[]]]]])([])([[[
[[[[[[[]]]]]]]]]])([])([])([[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]])([[[[[
[[[]]]]]]]])([[[[[[[[[[[[]]]]]]]]]]]])([[[]]])([[[[]]]])([[[[[[[[[[[
[[[[[[]]]]]]]]]]]]]]]]])([[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]])([[[[[[[]]
]]]]])([[[[[[[[[[[]]]]]]]]]]])([[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]
]]]]]]])([[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]])([[[]]])([[[[[[[[[
[[[[]]]]]]]]]]]]])([[[[[[[[[[[[[]]]]]]]]]]]]])([])([[[[[[[[[]]]]]]]]
])([[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]])([[[]]])([[]])([])([[[[[
[[[[[]]]]]]]]]])([[[[[[[[[]]]]]]]]])([])([[]])([[[]]])([[]])([])([[]
])([[]])([])([[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]])([[]])([[[
[[[[[[[[[[]]]]]]]]]]]]])([[[[[[[[[[]]]]]]]]]])([[[[]]]])([])([[[[]]]
])([])([[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]])([])([])
([[[]]])([[[[[[[[[]]]]]]]]])([])([])([[[[[[[]]]]]]])([[[[[[[]]]]]]])
([[]])([])([])([[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]
]]])([[[[]]]])([[[[[[[[[[[]]]]]]]]]]])([[[[[]]]]])([[[[[[[[[]]]]]]
]]])([])([])([[[[]]]])([[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]
]]])([[[[[[]]]]]])([[[[[[[[[[]]]]]]]]]])([[[[[]]]]])([[[[[[[[[[]]]
]]]]]]])([])([[[[]]]])([[]])([])([])([[[[[[[[[[[[[[[[[[[]]]]]]]]
]]]]]]]]]]])([[[[[[[[]]]]]]]])([[[[[[[[]]]]]]]])([[[[[]]]]])([[[
[[[[[[[[[[[]]]]]]]]]]]]]])([])([[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]
]]]]]]]]]]]]]]])([[[[[[]]]]]])([[[[[[[[[]]]]]]]]])([[[[]]]])([
])([])([[[[[[[[[[[]]]]]]]]]]])([[[[[]]]]])([[[[[[[[[[[[[[[[[[[
[[[[]]]]]]]]]]]]]]]]]]]]]]])([[[[[]]]]])([[[[[[[[[]]]]]]]]])
([[[[]]]])([])([])([[[[[[[[[[]]]]]]]]]])([[[[[[[]]]]]]])([[[
[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]])([[[[]]]])([[[[[
[[[[[[]]]]]]]]]]])([[]])([[[[[[[[[[[[[]]]]]]]]]]]]])([[[[[
[[]]]]]]])([[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]])
([[[]]])([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]
]]]]]]]]]]]]]]]]])([[]])([[[[[[[[[[[[[[[[[[[[[[]]]]]]]
]]]]]]]]]]]]]]])([[[]]])([[[[[[[[[[[[[[[[[[[[[[[[[[[
[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])([])([[[[]
]]])([])([[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]])([[]
])([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])([])([[[[[
[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]])([[]])([
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]])([])([])([]);
var m:BitmapMaterial = new BitmapMaterial((new BitmapData(s.width, s.height)));
m.bitmap.draw(s);
m.smooth = true; // turn off to get more performance
b = new Sphere(m, 500, 18, 18);
scene.addChild(b);
startRendering();
}
override protected function onRenderTick(event:Event=null):void {
b.rotationY += 1;
super.onRenderTick(event);
}
private var w:int = 0;
private var o:int = 5;
private var r:int = 2;
private var l:uint = 0;
private var s:Sprite = new Sprite();
private function helloWorld(world:* = null):Function {
function hello (world:*):* {
if (world) {
s.graphics.beginFill(l);
s.graphics.drawRect((o + r) * (w % 59), (o + r) * Math.floor(w / 59), o, o);
s.graphics.endFill();
return ++w, hello(world.pop())
}
return;
}
return hello(world), l = ~l, helloWorld;
}
}
}