---
title: clearShadow
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/canvasrenderingcontext2d/1634057-clearshadow
---

# clearShadow

Turns shadows off.

## Declaration

```data
void clearShadow();
```

## Discussion

Discussion When you set a shadow color or shadow blur, and a shadow offset, all subsequent drawing operations include a shadow of the current color and blur, at the specified offset. The clearShadow method is a convenient way to turn shadows off. note: The clearShadow() method is not currently part of the HTML5 specification. It is supported in Safari and other Webkit-based browsers.

## See Also

### Working with Shadows

- [shadowBlur](webkitjs/canvasrenderingcontext2d/1632236-shadowblur.md)
- [shadowColor](webkitjs/canvasrenderingcontext2d/1629275-shadowcolor.md)
- [shadowOffsetX](webkitjs/canvasrenderingcontext2d/1632399-shadowoffsetx.md)
- [shadowOffsetY](webkitjs/canvasrenderingcontext2d/1633455-shadowoffsety.md)
