---
title: setShadow
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/canvasrenderingcontext2d/1630005-setshadow
---

# setShadow

## Declaration

```data
void setShadow(
    unrestricted float width, 
    unrestricted float height, 
    unrestricted float blur, 
    optional DOMString color, 
    optional unrestricted float alpha
);
```
