basic readme

This commit is contained in:
yuanchuan 2017-02-25 10:12:24 +08:00
parent 4047c2833b
commit ddba29d562
2 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,26 @@
A web component for drawing patterns with css.
![circles](screenshot/circles.png)
```html
<css-doodle grid="5">
:doodle {
border-radius: 50%;
overflow: hidden;
background: #f1ffd9;
}
--size: @rand(200%);
width: var(--size);
height: var(--size);
border-radius: 50%;
background-color: hsla(
@rand(100), 80%, 50%, @rand(.8)
);
</css-doodle>
```
## Usage
include css-doodle.js in your html:

BIN
screenshot/circles.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB