Pie charts for component/favicon inspired by the original piecon. Styled with CSS!
$ component install component/piecon
Piecon utilizes component/style to enable CSS styling for Canvas rasters. For example the default style is:
.pie {
color: #EC4E89;
background: #bbb;
border: 2px solid white;
}
Initialize a new Piecon
with optional CSS selector
used
for styling, this defaults to ".pie".
Update the percentage to n
, this will automatically
draw the pie and replace the favicon.
Set the diameter to n
.
Reset favicon.
MIT