flash on 2010-2-8

by 084
♥1 | Line 16 | Modified 2010-02-08 16:32:00 | MIT License
play

ActionScript3 source code

/**
 * Copyright 084 ( http://wonderfl.net/user/084 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/mVtR
 */

package {
    import org.papervision3d.materials.*;
	import org.papervision3d.materials.special.*;
	import org.papervision3d.objects.primitives.*;
	import org.papervision3d.view.*;
	public class Main extends BasicView {
		public function Main() {
		var material:CompositeMaterial = new CompositeMaterial();
		material.addMaterial(new ColorMaterial(0xdcdcdc));
		material.addMaterial(new WireframeMaterial(0x000000));
		var sphere:Sphere = new Sphere(material,500,10,10);
		scene.addChild(sphere);
		startRendering();
		}
	}
}

Forked