Avatar
A pixel art portrait drawn on a grid of 250 by 250 pixels. Its colors are mixes of the primary, surface and text colors of the theme, and only the skin keeps fixed colors. It is 250 pixels wide and tall, one screen pixel for each pixel of the drawing. To enlarge it, set `width` and `height` in CSS to a whole multiple of 250, which keeps the pixels sharp.
Import
Importing the library registers <pix-avatar>.
import '@halleyfante/pix';Default
With a border
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
select | number | undefined | Number of the avatar to draw. The available number is 0. | |
bordered | boolean | false | Draws a border around the avatar, in the border color of the theme. |