Pixel UI/ASCII/Night city

Night city

Three layers of skyline sliding past, windows switching on and off.

<piix-ascii>WebGL
Colours
Characters

A city at night in parallax, its windows laid on the character grid and flickering on and off as people come and go, under a moon and a few stars.

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="city" 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