{
  "format": "tokbit",
  "version": 1,
  "name": "Rainbow stairs",
  "main": [
    {
      "id": "u1",
      "kind": "call",
      "call": "background(BLACK)"
    },
    {
      "id": "u2",
      "kind": "call",
      "call": "border(BLACK)"
    },
    {
      "id": "u3",
      "kind": "call",
      "call": "cls()"
    },
    {
      "id": "u4",
      "kind": "for",
      "variable": "c",
      "range": "1, 16",
      "body": [
        {
          "id": "u5",
          "kind": "call",
          "call": "color(c)"
        },
        {
          "id": "u6",
          "kind": "call",
          "call": "at(c, c)"
        },
        {
          "id": "u7",
          "kind": "output",
          "values": "\"Colour\", c"
        }
      ],
      "comment": "Colour 0 is black and would not show on a black background."
    },
    {
      "id": "u8",
      "kind": "call",
      "call": "color(WHITE)"
    },
    {
      "id": "u9",
      "kind": "call",
      "call": "at(12, 20)"
    },
    {
      "id": "u10",
      "kind": "output",
      "values": "\"*** RAINBOW ***\""
    }
  ],
  "functions": [],
  "comment": "Solution to the task “Stairs”: Move each line one column to the right so the colours form stairs. The at(x, y) block helps."
}
