
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Properties for HTML5 Canvas to create shadows
HTML5 canvas provides capabilities to create nice shadows around the drawings. All drawing operations affected by the four global shadow attributes.
Sr.No. | Property and Description |
---|---|
1 | shadowColor [ = value ] This property returns the current shadow color and can be set, to change the shadow color. |
2 | shadowOffsetX [ = value ] This property returns the current shadow offset X and can be set, to change the shadow offset X. |
3 | shadowOffsetY [ = value ] This property returns the current shadow offset Y and can be set, change the shadow offset Y. |
4 | shadowBlur [ = value ] This property returns the current level of blur applied to shadows and can be set, to change the blur level. |
- Related Articles
- Properties to create text using HTML5 Canvas
- Create a pattern with HTML5 Canvas
- addEventListener for keydown on HTML5 Canvas
- Fractional font sizes for HTML5 Canvas?
- Create a text inside circles in HTML5 Canvas
- HTML5 Canvas Text Stroke for Large Font Size
- What are free libraries for Canvas in HTML5?
- HTML5 Canvas to PNG File
- HTML5 Canvas fit to window
- Translating HTML5 canvas
- HTML5 Canvas distorted
- HTML5 Canvas Transformation
- How to center canvas in HTML5?
- Zoom HTML5 Canvas to Mouse Cursor
- HTML5 Canvas Transformation Matrix

Advertisements