Pixel UI/ASCII/Planet

Planet

A planet turning in space: continents, cloud and a lit atmosphere.

<piix-ascii>WebGL
Colours
Characters

Oceans and continents rotate past, clouds drift over them, the limb glows where the sunlight grazes the atmosphere. Move the pointer to move the sun.

Installation

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

Usage

<piix-ascii scene="planet" height="460px"></piix-ascii>

Examples

As a hero

With fill it sits behind everything else in its section.

Build in ASCII.

A whole world behind your words.

Get started

Other characters

chars swaps the character ramp: blocks, binary, or dots.

Repainted

Any palette, or your own colours from dark to light.

API reference

AttributeWhat it doesDefault
sceneglow flow aurora ocean terrain galaxy planet city tunnel rain storm dunesglow
paletteany Pixel UI palette, or your colours dark to light: #0a1a8c,#2b8cff,#ffffffthe scene's own
charsascii blocks binary dotsascii
hazehow much soft glow behind the characters, 0 to 1.55
pixelsize of one font pixel, in px (a character is 6 by 9 of them)2
speed1 is normal, 0 holds still1
heightwhen not filling: px or any CSS length420px
fillsit behind the content of the parent element–

Accessibility