Theme file: palette, outlines, shadow, fonts, shading #3

Closed
opened 2026-11-01 23:21:15 +00:00 by Weissstreifen · 1 comment

One file, assets/theme.txt (key=value, read with parin_kit.algorithm.parse like skin.txt), reloaded when it changes on disk (file_watch).

  • pixelSize (art pixel size), outline (thickness in art pixels, default 2) and outlineColor (near black).
  • Series palette: 8+ vibrant colors, each with a light and dark shade computed through parin_kit.algorithm.color unless they are set by hand.
  • Background, text, axis, gridline and highlight colors.
  • Drop shadow: offset in art pixels and color/alpha.
  • Fonts: a pixel font for titles (big) and one for labels/numbers (legible at 1280x720, e.g. a 16 px font drawn x1 or an 8 px font drawn x2). Digits must be monospaced so counting numbers don't jitter.
  • Easing defaults: duration, stagger and overshoot of entries.
  • The theme can be overridden per scene (theme = other.txt, or single keys).

Done when: changing a color or the outline width in the file updates the running scene at once.

One file, `assets/theme.txt` (`key=value`, read with `parin_kit.algorithm.parse` like `skin.txt`), reloaded when it changes on disk (`file_watch`). - `pixelSize` (art pixel size), `outline` (thickness in art pixels, default 2) and `outlineColor` (near black). - Series palette: 8+ vibrant colors, each with a `light` and `dark` shade computed through `parin_kit.algorithm.color` unless they are set by hand. - Background, text, axis, gridline and highlight colors. - Drop shadow: offset in art pixels and color/alpha. - Fonts: a pixel font for titles (big) and one for labels/numbers (legible at 1280x720, e.g. a 16 px font drawn x1 or an 8 px font drawn x2). Digits must be monospaced so counting numbers don't jitter. - Easing defaults: duration, stagger and overshoot of entries. - The theme can be overridden per scene (`theme = other.txt`, or single keys). **Done when:** changing a color or the outline width in the file updates the running scene at once.
Author
Owner

Fonts come from #20 (Monocraft-based bitmap font, format from parin_kit#141).

Fonts come from #20 (Monocraft-based bitmap font, format from parin_kit#141).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#3
No description provided.