Log inGet started
World

Lantern Depths: Find the Shade Dash, Slay the Thorn Knight

Branchmain
Branchesmain
Commitda5ac13948

README.md

CRT scanlines (styleBlock, Medium)

Draws the picture as an old CRT monitor or arcade screen: dark beam lines between rows, bright areas blooming across them, a faint red, green and blue phosphor stripe and an optional curved glass. Shipped by sideScrollerKit for its scifi theme look; it stacks and swaps like any styleKit block (StyleKit.add("crtScanlines")).

Settings: period (4 reference px), darkness (0.35), mask (0.12), bloom (0.15), curve (0, flat).

What it gives up in motion

The lines and stripes belong to the screen, as they do on a real monitor, so they stay still while the picture scrolls under them. At a period below about 3 reference pixels on a small screen the lines can beat against the display's own pixels; keep it at 3 or more.

How it treats content

  • Opaque things: lines across them, brighter areas bloom through the gaps.
  • Transparent things (glass, water): the same.
  • Particles and smoke: the same; bright sparks bloom.
  • Sky: lines across it.
  • Fog: the same.
  • Skinned characters and sprites: the same, the lines do not move with them.
  • Foliage: the same.
  • World text: lines across world labels; exclude a label that must stay crisp. Screen UI is drawn after the stack and is never touched.
  • Black stays black: it only multiplies.