Log inGet started
World

Comic Book Looks: Halftone, Ben-Day, Noir Ink and Panels

Branchmain
Branchesmain
Commit79e4166043

README.md

comicBlocks tests

Checks the package against styleKit's block rules and against what its docs promise, partly on the presented frame of a small set the suite builds itself (a white wall, a row of red boxes, a floor and a camera of its own), since the test runner empties the scene.

  • Rules: all twenty-two blocks are installed from comicBlocks, pass StyleKit.checkBlock and sit in their slots: every colour choice in Colour (palettes and duotones as chain blocks), spot colour in Colour, plate shift in Raster, speed lines in Medium.
  • Works after a plain install: every block each of the eleven looks names ships in a package an install of comicBlocks brings (comicBlocks, toneScreens, styleKit, toonBlocks, paperBlocks, starterBlocks).
  • One change: every look applies in one StyleKit.applyLook, uses only the shared entry names (fill, palette, screen, line, paper, spot, register, press, speed), and keep = { "line" } holds a line across a look change.
  • Noir and spot colour on the frame: noir takes the red boxes to black and white ink (under a third of their plain chroma); spot colour by hue keeps them red under a black-and-white page.
  • Still misregistration: under the heaviest plate shift, two settled frames a second apart match.
  • Clean removal: golden age, noir and pop art each change the frame, and a clear puts it back within 0.5 of 255.

The scene's shared stack, the viewport camera and the test set are put back after each test. Run with zero tests run comicBlocksTests or asset.resolve("comicBlocksTests", "testSuite"):run(). It takes about a minute.

Known limits

The tests judge regions by mean colour; they do not grade how a look reads at a glance, which the showcase and the package README's captures do. The comicWorld workflow is not run here.