<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/templates/xsl/lab.xsl"?>
<entry>
	<title>3d Emphasized Particle Sphere - haXe &amp; flash 10</title>
	<swf>
		<url>Random.swf</url>
		<width>800</width>
		<height>450</height>
	</swf>
	<info>
		<p>Similar to the <a href="/experiments/basic-3d-particles/3d-particle-sphere/">3D Particle Sphere</a> however all particles are evenly spaced rather than random, and are double spaced at scale time so each particle is visible.</p>
	</info>
	<sources>
		<snip>
<pre>for( i in 0...PARTICLES ) {
    a = (360/PARTICLES)*i;
    r = (i/PARTICLES) * Math.PI;
    x = Math.cos(a) * Math.cos(r);
    y = Math.cos(a) * Math.sin(r);
    z = Math.sin(a);
}</pre>
		</snip>
	</sources>
</entry>
