3D

The pals as real 3D models: toys you can spin, trading cards, a tiny planet, a snow globe, a hologram and little voxel rooms. Every one can be drawn glossy, in clay, cel-shaded, as a wireframe, a hologram, or in halftone, dither or ASCII.

Pals in 3D 6

Voxel

<piix-voxel>

Any pal as a 3D toy you can spin, in eight looks from glossy to ASCII.

<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<piix-voxel pal="bitbug"></piix-voxel>
<piix-voxel pal="frog" look="toon"></piix-voxel>
<piix-voxel pal="whale" look="halftone"></piix-voxel>
Options
pal
any pal or sprite name (default bitbug)
look
glossy | clay | toon | wire | holo | halftone | dither | ascii (default glossy)
size
width in px (default 200)
spin
turns a minute when nobody holds it, 0 to stay still (default 6)
depth
how puffy, 1–6 (default 3)
clip
which animation to play
tilt
how far you look down on it, in degrees (default 22)
light
pointer or fixed (default pointer)
floor
"none" hides the shadow
events
piix:poke

Card

<piix-card>

A holographic trading card for any pal, with the pal standing in 3D.

<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<piix-card pal="frog"></piix-card>
<piix-card pal="whale" rarity="rare"></piix-card>
Options
pal
any pal or sprite name (default bitbug)
rarity
common, rare or holo; holo has the foil (default holo)
look
how the pal is drawn: glossy | clay | toon | wire | holo | halftone | dither | ascii
size
card width in px; it is 1.4 times as tall (default 240)
color
the card colour (default: picked from the pal)
events
piix:poke

Planet

<piix-planet>

A tiny voxel world with pals walking round it.

<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<piix-planet pals="bitbug,frog,penguin"></piix-planet>
Options
pals
comma-separated pal names (default bitbug,frog,penguin)
seed
a number: a different world for each (default 7)
size
width in px (default 260)
spin
turns a minute when idle (default 3)
look
glossy | clay | toon | wire | holo | halftone | dither | ascii

Globe

<piix-globe>

A pal in a snow globe. Shake it.

<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<piix-globe pal="penguin"></piix-globe>
Options
pal
any pal or sprite name (default penguin)
sky
night, dusk or day (default night)
snow
how many flakes, 20–300 (default 140)
size
width in px (default 220)
look
how the pal is drawn
API
el.shake()
events
piix:poke

Holo

<piix-holo>

A pal projected as a flickering hologram.

<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<piix-holo pal="astronaut"></piix-holo>
Options
pal
any pal or sprite name (default astronaut)
color
cyan, lime, pink or amber (default cyan)
size
width in px (default 220)
look
how the pal is drawn (default holo)

Room

<piix-room>

A little isometric voxel diorama with a pal living in it.

<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<piix-room scene="desk"></piix-room>
<piix-room scene="pond"></piix-room>
<piix-room scene="night"></piix-room>
Options
scene
desk, pond or night (default desk)
pal
who lives there (default termi, frog or shibe)
size
width in px (default 300)
look
glossy, clay, toon, wire, halftone, dither or ascii (default clay)