Skip to content

Hermann-SW/javascript-sphere

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-sphere

Javascript class for drawing a sphere on an HTML5 canvas without any external dependency or library by using the Orthographic Projection Matrix technic.

Live demo

https://hermann-sw.github.io/javascript-sphere/

mousemove event demo

Default is "solid = false" mode, where you see points that are not visible in case of a solid sphere. In that mode points not visible in case of a solid sphere are drawn in dark grey:
down and up

Mouse down switches to "solid = true", mouse up back to the other mode. The embedded tetrahedron (its vertices are on the sphere) is always drawn completely with white straint lines:
down and up

About

Javascript class for drawing a sphere on an HTML5 canvas without any external dependency or library by using the Orthographic Projection Matrix technic.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 82.2%
  • HTML 16.7%
  • CSS 1.1%