waaraawa_ByteGrid/examples/auto-color-basic.yaml
waaraawa 482b458370 feat(core): add automatic color assignment for fields
- Add autoColor option (default: true)
    - true: Auto-assign colors to fields without explicit colors
    - false: Use gray for fields without explicit colors
  - Auto color sequence: blue, cyan, yellow, green, orange, purple, mint, pink
  - Padding/reserved fields always use gray
  - Explicit colors always take precedence

  Examples & Documentation:
  - Add 4 example files (basic, manual, mixed, interactive guide)
  - Update examples/README.md with Auto Color section
  - Add Color Options explanation

  Tests:
  - Add 8 new tests (5 layoutEngine, 3 parser)
  - Update existing test for autoColor: false
2025-10-22 22:24:24 +09:00

38 lines
831 B
YAML

name: Auto Color Basic Example
size: 32
layout: 16
# autoColor: true is the default
fields:
- offset: 0-3
name: Field1
type: uint32_t
description: "Auto-assigned blue"
- offset: 4-7
name: Field2
type: uint32_t
description: "Auto-assigned cyan"
- offset: 8-11
name: Field3
type: uint32_t
description: "Auto-assigned yellow"
- offset: 12-15
name: Field4
type: uint32_t
description: "Auto-assigned green"
- offset: 16-19
name: Field5
type: uint32_t
description: "Auto-assigned orange"
- offset: 20-23
name: Field6
type: uint32_t
description: "Auto-assigned purple"
- offset: 24-27
name: Field7
type: uint32_t
description: "Auto-assigned mint"
- offset: 28-31
name: Field8
type: uint32_t
description: "Auto-assigned pink"