An open API service indexing awesome lists of open source software.

https://github.com/component/piecon

Pie favicons -- great for upload progress etc
https://github.com/component/piecon

Last synced: 8 months ago
JSON representation

Pie favicons -- great for upload progress etc

Awesome Lists containing this project

README

          

# piecon

Pie charts for [component/favicon](https://github.com/component/favicon)
inspired by the original [piecon](https://github.com/lipka/piecon). Styled
with CSS!

![js pie favicons](http://f.cl.ly/items/3T2g1b2w1j2t3e3A1Y3r/Screen%20Shot%202012-09-20%20at%2012.55.50%20PM.png)

## Installation

$ component install component/piecon

## Styling

Piecon utilizes [component/style](https://github.com/component/style)
to enable CSS styling for Canvas rasters. For example the default
style is:

```css
.pie {
color: #EC4E89;
background: #bbb;
border: 2px solid white;
}
```

## API

### new Piecon([selector])

Initialize a new `Piecon` with optional CSS `selector` used
for styling, this defaults to ".pie".

### Piecon#update(n)

Update the percentage to `n`, this will automatically
draw the pie and replace the favicon.

### Piecon#size(n)

Set the diameter to `n`.

### Piecon#reset()

Reset favicon.

# License

MIT