Log inGet started
World

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

Branchmain
Commit2963abaa3c

README.md

hangiCore (shaderModule)

The shared rules every ukiyoeBlocks block follows, so a key line, a flat fill, a bokashi band and a wave pattern in one stack agree on the palette, on where the water is, on how bands are wiped and on when a pattern is too fine to draw. Include it after styleKit's skCommon, skPatterns, skAnchored, skPigment and skPigmentSet.

  • hg_snap(c, sharp): a colour pulled to the nearest paints of the picked pigment set (a woodblock palette), smoothly, so areas read flat without speckling where two paints meet.
  • hg_paper_white(): the set's light colour (the paper white), or a warm white when no set is picked.
  • hg_water(uv, level, band): how much a pixel is water (a surface at the water level facing up, or anything seen through transparent water below it) and how deep the water there is, in metres.
  • hg_band(t, steps, soft): a value cut into a few printed bands with soft wiped edges.
  • hg_fine_fade(uv, periodMetres, minPx): 1 while a pattern repeating every periodMetres is at least minPx reference pixels across here, falling to 0 as it gets finer, so no pattern ever fills the view with fine stripes.
  • hg_held_seed(): a seed that changes only on the held clock.

Pure math over styleKit's helpers: no bindings of its own.