qcobjects-docs
Version:
The official app and website for documentation of QCObjects
17 lines (12 loc) • 380 B
Markdown
Rounds the corner of an element
```javascript
(new Radius()).apply(element, radiusFrom, radiusTo)
```
**radiusFrom** and **radiusTo** are numeric values.
```javascript
// the next line will round the corners of every image in the document
Tag('img').map(element => (new Radius()).apply(element, 0, 100))
```