I have a complex HTML5 task.. I need to draw transparent overlapping spheres. Please have a look at:
https://i.stack.imgur.com/Nlw1Y.jpg
I need to draw a sphere which is easy, But, I need to fill it as it look in the picture above (link) and make sure its semi-transparent..
The spheres has to move, so, one time the smaller sphere in the back can be animated and be bigger..
I know its complicated (it looks easy but its hard to program).
Any help will be appreciated!
Thanks!
You can set the globalAlpha value to get the transparency effect:
Something like this jsfiddle