Arun R
Arun R

Reputation: 8392

HTML5 Canvas and light source

The HTML5 canvas has the gradients and shadow elements to add shadowing effects. However, it seems that having a light source mentioned would have the shadow effects be more realistic. Is there any such method to mention a light source or is one being planned ?

Upvotes: 0

Views: 884

Answers (2)

Christian V
Christian V

Reputation: 2040

No, but you can use scripts such as Three.js that provides suchs features.

Upvotes: 2

beeglebug
beeglebug

Reputation: 3542

No, the canvas API does not include any built in "lighting" features.

Upvotes: 0

Related Questions