Sprites.Platform.BBC

The BBC Micro sprite pack. Modes of two, four and sixteen colours, with byte-aligned widths.

Sprites.Platform.BBC

Sprites.Platform.BBC.Name String

The machine's display name.

"BBC Micro"

Sprites.Platform.BBC.Palette Array

The machine's fixed colours, as hex strings, the set a slot may be recoloured from.

[
  "#000000",
  "#ff0000",
  "#00ff00",
  "#ffff00",
  "#0000ff",
  "#ff00ff",
  "#00ffff",
  "#ffffff"
]

Sprites.Platform.BBC.Slots Array

The colours the editor starts on, one a slot.

[
  "#000000",
  "#ff0000",
  "#00ff00",
  "#ffff00",
  "#0000ff",
  "#ff00ff",
  "#00ffff",
  "#ffffff",
  "#000000",
  "#ff0000",
  "#00ff00",
  "#ffff00",
  "#0000ff",
  "#ff00ff",
  "#00ffff",
  "#ffffff"
]

Sprites.Platform.BBC.Modes Array

The sprite modes, in the order the Info window lists them. Each sets a colour count, a pixel aspect and a size rule.

NameColoursPixel aspectSize
Mode 020.5widths 8, 16, 24, 32, 40, 48, 56, 64; height typed to 64
Mode 421widths 8, 16, 24, 32, 40, 48, 56, 64; height typed to 64
Mode 141widths 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64; height typed to 64
Mode 2162widths 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64; height typed to 64
[
  { "name": "Mode 0", "colours": 2, "pixelAspect": 0.5, "allowedWidths": [8, 16, 24, 32, 40, 48, 56, 64], "maxHeight": 64 },
  { "name": "Mode 4", "colours": 2, "pixelAspect": 1, "allowedWidths": [8, 16, 24, 32, 40, 48, 56, 64], "maxHeight": 64 },
  { "name": "Mode 1", "colours": 4, "pixelAspect": 1, "allowedWidths": [4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64], "maxHeight": 64 },
  { "name": "Mode 2", "colours": 16, "pixelAspect": 2, "allowedWidths": [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64], "maxHeight": 64 }
]

Sprites.Platform.BBC.DefaultWidth Number

The width the editor opens on.

16

Sprites.Platform.BBC.DefaultHeight Number

The height the editor opens on.

16