Log inGet started
World

Woodblock Print Looks: Ukiyo-e and Shin-hanga Style Blocks

Branchmain
Commit2963abaa3c

README.md

Rain strokes (styleBlock, Medium)

Rain printed as straight, fine, slanted strokes in two layers, the way a woodblock cutter draws rain: sparse dark lines by day, pale lines at night, falling in held steps in front of near and far things.

Settings: colour, opacity, density, lengthPx, widthPx, cellPx, slant, speed, nearLayer, farLayer, lightOnDark. Pair it with your world's own rain (particles, wet surfaces) or use it alone; Woodblock.weather("rain") switches it on in the current look.

What it gives up in motion

The strokes are laid on the direction the camera looks, like the sky, so a pan or turn leaves them in place in the world rather than dragging them. They fall in held steps, so they move as a printed animation at the hold rate rather than smearing. Each stroke is at least about one drawn pixel wide and the strokes stay sparse, so nothing shimmers; there is no flashing.

How it treats content

  • Opaque things: rain falls in front of them when they are farther than the layer distance.
  • Transparent things (glass, water): rain falls over them.
  • Particles and smoke: rain falls over them.
  • Sky: rain falls across it.
  • Fog: rain keeps its contrast; lower opacity in thick fog.
  • Skinned characters: a character nearer than nearLayer stands in front of the rain.
  • Foliage: rain falls in front of far trees.
  • World text: rain can cross labels; exclude labels a player must read.
  • Black stays black: sk_finish keeps black black, so rain never lights an unlit pixel.
  • Dim rooms: pale strokes only where the scene has some light.