Is there any reason for using WebGL instead of 2D Canvas for 2D games/apps?

Looking at this question from another side:how does a developer choose one technology over another? integrates better in their already built system is easier to use is faster has more capabilities or better suits their needs cost more platfrom-independant So I’ll discuss the differences between canvas and webGL APIs regarding these qualities. Both canvas and … Read more

Resize image with javascript canvas (smoothly)

You can use down-stepping to achieve better results. Most browsers seem to use linear interpolation rather than bi-cubic when resizing images. (Update There has been added a quality property to the specs, imageSmoothingQuality which is currently available in Chrome only.) Unless one chooses no smoothing or nearest neighbor the browser will always interpolate the image after down-scaling it as this … Read more