vibehyper.media

Example page · glyphfield

← All projects

Example page · Ex. 10 Class IV · Curiosities

glyphfield

A painting that is an endpoint. Poll it and the field of glyphs morphs a little further.

  1. Each glyph is an element with a stable id. The server sends its weight, softness and tilt as custom properties; there is no canvas and no requestAnimationFrame.
  2. innerMorph touches only the attributes that changed. CSS transitions paint the three seconds between one state and the next.
  3. The placard is in the response too. Even the wall label is server-rendered.
  4. The state is a function of the clock. Everyone polling right now sees this painting at this state. Stop polling and it stops.
Fig. 1. Field, polled every three seconds and hung in glyphfield's own skin. The Ruby server is played by the demo responder. awaiting first request
Kind
art experiment
Language
Ruby
htmx
4.x
Status
experimental
Licence
CC BY-NC 4.0
Edition
1 of ∞

§1Description

§2Source

Maintainers
example-maintainer, example-2Made-up handles: an example has no people
Repository
NoneAn example, listed to show the page at size
Register
projects.jsonEx. 10, an example number: examples never take a register No.
Skin
skin-glyphfield.cssworn inside fig. 1 only
Frame
Signalthe house frame; a skin dresses only the demo window
Hanging instructionsEx. 10
Run
ruby field.rb serves the painting on :4567/field
Hang
<div hx-get="/field" hx-trigger="every 3s" hx-swap="innerMorph">
Light
field.css. The transitions are the brushwork; don't skip it
Needs
htmx 4.x · Ruby 3.3 · one variable font
Edition
open. Every running server shows the same painting