We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › EasySphere
Page Index Toggle Pages: 1
EasySphere (Read 638 times)
EasySphere
Dec 15th, 2009, 10:53am
 
http://www.openprocessing.org/visuals/?visualID=6566

...
http://www.openprocessing.org/visuals/applets/visualb7ee343ce6dc454f950d889d56af...

//December 15th 2009
//EasySphere v1.0
//Owaun Scantlebury

import peasy.org.apache.commons.math.*;
import peasy.*;
import peasy.org.apache.commons.math.geometry.*;
PeasyCam cam;
void setup(){
size(300,300,P3D);  
background(255);  
cam= new PeasyCam (this,width);
}

void draw(){
 translate(-width/2,-height/2);
 background(255);  
for (float z=0;z<360;z+=0.1){ //0.01 to increase resolution
  translate(width/2,height/2,0);
  rotateX(z);
  //line(0,0,30,30); //uncomment for solid sphere
  point(30,30);
  rotateZ(z);
  point(30,30);
  //line(0,0,30,30); //uncomment for solid sphere
  translate(-width/2,-height/2,0);
   
 
}  
 
}


Page Index Toggle Pages: 1