I am creating a Canvas with an image inside using
context.drawImage(image, (cWidth - iRatio)/2, 0, iRatio, cHeight);
And behind the canvas there is a Blue Wallpaper inside a Div.
As you can see on the image (done on Photoshop), the Canvas (Image with the Sun) is fading from opacity 1 to 0.
How can I do it in Canvas with JS or CSS ? I want the Canvas edges(All, so Left, Right, Top and botoom) to have an opacity 0 and fading to center with opacity 1.
