Log inGet started
Package

styleRoles.package

This package holds more than this page lists. See all of its files in its world.

README.md

Pencil sketch (role set)

For graphite, charcoal and coloured pencil looks, made to read at a squint: the hero stays light, with little shading and a blue pencil outline; enemies are shaded dark with tightly packed strokes and a heavy red outline; pickups are drawn in their own colour in coloured pencil with an ochre outline and no paper grain; props stay light grey.

Pick it with StyleKit.setRoles("pencilSketch") (or StyleRoles.use("pencilSketch"), which also adds its variant lines and glazes), and give an object a role with StyleKit.give(entity, "enemy"). With no set picked, the stack takes this one by itself under pencilSketch, charcoalStudy, blueprint, storybookPencil, fieldNotesOnKraft, whiteCharcoalNight and coloredPencilWash (its forLooks), and under any other pencilBlocks look (its forPackages).

Line is the weight of lines and strokes (1 as the look draws them). Marks are how much of the look's line, tone (shading marks and light bands), fill (washes, cel fills, colour) and paper reach the object. Value here means coloured pencil, for pencil shading blocks: 0 draws in the look's lead, 1 draws strokes and a soft layer in the object's own colour, pushed toward its hue so a pale-lit gold reads as gold.

StyleRoles.use also adds variant lines (a copy of the stack's line drawn only on that variant, in its own lead: blue #1f4fb0 for players, red #a01818 for enemies, ochre #c88a00 for pickups, burnt orange #c04a00 for hazards) and a coloured-pencil glaze over each of those groups.

RoleVariantLineMarks: line / tone / fill / paperValue
heroplayer1.31 / 0.33 / 1 / 0.330.5
partnerplayer1.21 / 0.33 / 1 / 0.670.4
enemyenemy2.61 / 1 / 1 / 10
eliteenemy31 / 1 / 1 / 10
bossenemy3.51 / 1 / 1 / 10
pickuppickup21 / 1 / 1 / 01
rarePickuppickup2.21 / 1 / 1 / 01
usableinteractive1.41 / 0.67 / 1 / 0.330.7
objectiveinteractive1.61 / 0.67 / 1 / 0.330.8
hazardhazard21 / 1 / 1 / 0.670.6
projectilehazard11 / 0.33 / 1 / 01
friendlyfriendly1.151 / 0.67 / 1 / 10.25
propbackground0.70.67 / 0.67 / 1 / 10
ghostbackground0.40.67 / 0.33 / 1 / 10
distantbackground0.350.67 / 0.33 / 1 / 10
asRenderedleft exactly as rendered

Known limits

  • At most eight distinct settings are drawn per scene; roles that resolve to the same setting share one (#24549, #22178).
  • A per-object value cannot reach a geometry pass, so some per-object looks need passes of their own (#24549).
  • Two engines on one account join as one player, so a two-player check needs two accounts or two machines (#14448).

The package README's Known limits lists the rest.