Rotating Wireframe Sphere in Canvas

I'll admit, I'm not quite well-versed in canvas or javascript yet (heck, I haven't done trig in many many years), but I was able to find something similar to what I was looking for in some canvas demos.

Rotating Sphere: http://www.javascriptdemos.com/?demoid=1

It's almost exactly what I wanted, but I was wondering if someone can help me draw lines in rather than it being dotted for longitude and latitude.

Any assistance will be greatly appreciated.

Answers


This can be optimized a bit. Take a look at the source code if you want to know how =). http://www.javascriptdemos.appspot.com/?demoid=16001


Need Your Help

Can't import static method using MVEL

java reflection scripting el mvel

According to MVEL's documentation, it's possible to import static java methods in a script: http://mvel.codehaus.org/Programmatic+Imports+for+2.0 . The following example is taken from that page, ho...

path of an image in an eclipse project

java eclipse swing path image

I'm trying to display two pictures on my JFrame, the way I found was to use icons and JLabels, this seems pretty straightforward and I'm not having problems with this. But when it comes to locating...