Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createCircle( x, y ) {
- var gradient = context.createRadialGradient(x, y, 0, x, y, 100);
- gradient.addColorStop(0, 'rgba(0, 0, 0, 0)');
- gradient.addColorStop(1, 'rgba(0, 0, 0, 1)');
- context.fillStyle = gradient;
- context.fillRect(0, 0, width, height);
- }
Add Comment
Please, Sign In to add comment