Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks
- ..
- .build.state16 B
- .metadata17 B
- README.md2.4 KB
- build.luau9.1 KB
- entrypoint.luau4.9 KB
- scene.json143 KB
README.md
main: the Style Cookbook
The world's starting scene. A small diorama drawn with one style stack, and a recipe board beside the spawn that explains each block in that stack.
The diorama: a white cottage with a red roof, a door, a glass window and a chimney; five trees; a pond ringed with stones; a fence of posts and two rails; and a stepping-stone path. It stands on a grass floor under a directional sun, a soft ambient light and a procedural afternoon sky.
The stack is one synced StyleStack entity, saved with the scene, so every player sees the same look. Its five entries run in slot order:
| Entry | Block | Slot | What it does |
|---|---|---|---|
wash | flatWash | Fill | Lays each area of colour as one flat, transparent wash with pooled edges; the paper shows through it. |
ink | depthLine | Line | A clean ink outline from depth. StyleKit.swap("ink", "sketchLine") turns it to pencil. |
paper | plainPaper | Ground | Warm paper with a fine tooth that stays on surfaces, under the wash and the line. StyleKit.swap("paper", "darkBoard") lays it on a dark board instead. |
boil | lineBoil | Time | The shared wobble on the held clock: the wash edges and the ink tremble together, 8 times a second. |
grain | softGrain | Medium | A soft print grain at strength 0.6. StyleKit.setStrength("grain", 0) takes it off. |
The recipe board stands to the left of the spawn, turned toward it: a title and one card per entry, read left to right in run order. Each card names the block, its slot and entry id, why it is in the stack, and the one call that changes it.
Players come from the scene's normal setup: a player prototype with the engine's humanoid avatar and an orbiting follow camera, and the spawn point where each player arrives.
build.luau states all of it as code, and scene.json holds the built result, so the scene is there the moment the world opens. StyleKit.clear() takes the whole look off; reverting the scene (tools.use("scene", "revert")) brings the saved stack back.
Known limits
- The look runs after antialiasing, so offscreen captures do not show it; read the presented frame (#17427).
- A two-client editor sometimes refuses to load two different scenes at once (#24666, #24667).
- A world boot can wait about 30 s on a network handshake before any content starts (#24669).
- The web build was not checked from here (#20946).