{
  "color_spaces": [
    {
      "name": "measured",
      "space": {
        "lab": {
          "white_point": [
            0.9642,
            1.0,
            0.8249
          ]
        }
      }
    }
  ],
  "shadings": [
    {
      "name": "horizontal",
      "shading": {
        "axial": {
          "from": [
            70.0,
            560.0
          ],
          "to": [
            280.0,
            560.0
          ],
          "start": [
            0.85,
            0.12,
            0.12
          ],
          "end": [
            0.12,
            0.2,
            0.8
          ]
        }
      }
    },
    {
      "name": "diagonal",
      "shading": {
        "axial": {
          "from": [
            315.0,
            490.0
          ],
          "to": [
            525.0,
            730.0
          ],
          "start": [
            0.95,
            0.8,
            0.1
          ],
          "end": [
            0.1,
            0.55,
            0.2
          ]
        }
      }
    },
    {
      "name": "radial",
      "shading": {
        "radial": {
          "from": [
            175.0,
            405.0,
            0.0
          ],
          "to": [
            175.0,
            405.0,
            105.0
          ],
          "start": [
            1.0,
            1.0,
            1.0
          ],
          "end": [
            0.1,
            0.15,
            0.45
          ],
          "extend": [
            false,
            true
          ]
        }
      }
    },
    {
      "name": "three_stops",
      "shading": {
        "axial": {
          "from": [
            315.0,
            320.0
          ],
          "to": [
            525.0,
            320.0
          ],
          "space": "rgb",
          "function": {
            "stitching": {
              "functions": [
                {
                  "exponential": {
                    "low": [
                      0.85,
                      0.12,
                      0.12
                    ],
                    "high": [
                      0.12,
                      0.6,
                      0.2
                    ]
                  }
                },
                {
                  "exponential": {
                    "low": [
                      0.12,
                      0.6,
                      0.2
                    ],
                    "high": [
                      0.12,
                      0.2,
                      0.8
                    ]
                  }
                }
              ],
              "bounds": [
                0.5
              ],
              "encode": [
                [
                  0.0,
                  1.0
                ],
                [
                  0.0,
                  1.0
                ]
              ]
            }
          }
        }
      }
    },
    {
      "name": "checkerboard",
      "shading": {
        "function_based": {
          "anti_alias": true,
          "domain": [
            [
              0.0,
              1.0
            ],
            [
              0.0,
              1.0
            ]
          ],
          "matrix": [
            210.0,
            0.0,
            0.0,
            170.0,
            70.0,
            100.0
          ],
          "space": "rgb",
          "function": {
            "calculation": {
              "domain": [
                [
                  0.0,
                  1.0
                ],
                [
                  0.0,
                  1.0
                ]
              ],
              "range": [
                [
                  0.0,
                  1.0
                ],
                [
                  0.0,
                  1.0
                ],
                [
                  0.0,
                  1.0
                ]
              ],
              "program": [
                2,
                "copy",
                8.0,
                "mul",
                "floor",
                "exch",
                8.0,
                "mul",
                "floor",
                "add",
                "cvi",
                2,
                "mod",
                0,
                "ne",
                3,
                1,
                "roll",
                0.2,
                4,
                3,
                "roll",
                [
                  0.45,
                  "mul",
                  3,
                  1,
                  "roll",
                  0.45,
                  "mul",
                  3,
                  1,
                  "roll",
                  0.45,
                  "mul",
                  3,
                  1,
                  "roll"
                ],
                "if"
              ]
            }
          }
        }
      }
    },
    {
      "name": "held",
      "shading": {
        "radial": {
          "from": [
            420.0,
            185.0,
            10.0
          ],
          "to": [
            420.0,
            185.0,
            85.0
          ],
          "start": [
            0.95,
            0.75,
            0.2
          ],
          "end": [
            0.55,
            0.1,
            0.35
          ],
          "extend": [
            true,
            true
          ]
        }
      },
      "bounding_box": [
        315.0,
        100.0,
        525.0,
        270.0
      ]
    },
    {
      "name": "process",
      "shading": {
        "axial": {
          "from": [
            70.0,
            560.0
          ],
          "to": [
            280.0,
            560.0
          ],
          "start": [
            1.0,
            0.0,
            0.0,
            0.0
          ],
          "end": [
            0.0,
            1.0,
            0.0,
            0.0
          ]
        }
      }
    },
    {
      "name": "process_radial",
      "shading": {
        "radial": {
          "from": [
            420.0,
            645.0,
            0.0
          ],
          "to": [
            420.0,
            645.0,
            105.0
          ],
          "start": [
            0.0,
            0.0,
            1.0,
            0.0
          ],
          "end": [
            0.0,
            0.9,
            0.9,
            0.2
          ],
          "extend": [
            false,
            true
          ]
        }
      }
    },
    {
      "name": "one_ink",
      "shading": {
        "axial": {
          "from": [
            70.0,
            330.0
          ],
          "to": [
            280.0,
            330.0
          ],
          "space": {
            "separation": {
              "colorant": "Corporate Blue",
              "ink": [
                0.92,
                0.58,
                0.0,
                0.06
              ]
            }
          },
          "function": {
            "exponential": {
              "domain": [
                0.0,
                1.0
              ],
              "low": [
                0.0
              ],
              "high": [
                1.0
              ],
              "exponent": 1.0
            }
          }
        }
      }
    },
    {
      "name": "two_inks",
      "shading": {
        "axial": {
          "from": [
            315.0,
            330.0
          ],
          "to": [
            525.0,
            330.0
          ],
          "space": {
            "device_n": {
              "colorants": [
                "Corporate Blue",
                "Corporate Gold"
              ],
              "alternate": "cmyk",
              "tint": {
                "calculation": {
                  "domain": [
                    [
                      0,
                      1
                    ],
                    [
                      0,
                      1
                    ]
                  ],
                  "range": [
                    [
                      0,
                      1
                    ],
                    [
                      0,
                      1
                    ],
                    [
                      0,
                      1
                    ],
                    [
                      0,
                      1
                    ]
                  ],
                  "program": [
                    1,
                    "index",
                    0.92,
                    "mul",
                    1,
                    "index",
                    0.0,
                    "mul",
                    "add",
                    2,
                    "index",
                    0.58,
                    "mul",
                    2,
                    "index",
                    0.28,
                    "mul",
                    "add",
                    3,
                    "index",
                    0.0,
                    "mul",
                    3,
                    "index",
                    0.95,
                    "mul",
                    "add",
                    4,
                    "index",
                    0.06,
                    "mul",
                    4,
                    "index",
                    0.04,
                    "mul",
                    "add",
                    6,
                    4,
                    "roll",
                    "pop",
                    "pop"
                  ]
                }
              }
            }
          },
          "function": {
            "exponential": {
              "domain": [
                0.0,
                1.0
              ],
              "low": [
                1.0,
                0.0
              ],
              "high": [
                0.0,
                1.0
              ],
              "exponent": 1.0
            }
          }
        }
      }
    },
    {
      "name": "lab",
      "shading": {
        "axial": {
          "from": [
            70.0,
            100.0
          ],
          "to": [
            280.0,
            100.0
          ],
          "space": "measured",
          "stops": [
            {
              "at": 0.0,
              "tints": [
                30.0,
                20.0,
                -60.0
              ]
            },
            {
              "at": 0.5,
              "tints": [
                95.0,
                0.0,
                0.0
              ]
            },
            {
              "at": 1.0,
              "tints": [
                65.0,
                45.0,
                70.0
              ]
            }
          ]
        }
      }
    }
  ],
  "items": [
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 770.0,
        "urx": 525.0,
        "ury": 791.6
      },
      "content": [
        "Gradients, and a colour read from a function"
      ],
      "font": "DejaVuSans",
      "font_size": 18.0,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 70.0,
        "lly": 560.0,
        "urx": 280.0,
        "ury": 730.0
      },
      "fill": {
        "shading": "horizontal"
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 545.0,
        "urx": 280.0,
        "ury": 557.0
      },
      "content": [
        "Axial, two colours"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 315.0,
        "lly": 560.0,
        "urx": 525.0,
        "ury": 730.0
      },
      "fill": {
        "shading": "diagonal"
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 315.0,
        "lly": 545.0,
        "urx": 525.0,
        "ury": 557.0
      },
      "content": [
        "Axial, on the diagonal"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 70.0,
        "lly": 320.0,
        "urx": 280.0,
        "ury": 490.0
      },
      "fill": {
        "shading": "radial"
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 305.0,
        "urx": 280.0,
        "ury": 317.0
      },
      "content": [
        "Radial, outer extended"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 315.0,
        "lly": 320.0,
        "urx": 525.0,
        "ury": 490.0
      },
      "fill": {
        "shading": "three_stops"
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 315.0,
        "lly": 305.0,
        "urx": 525.0,
        "ury": 317.0
      },
      "content": [
        "Axial, three stops"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 70.0,
        "lly": 100.0,
        "urx": 280.0,
        "ury": 270.0
      },
      "fill": {
        "shading": "checkerboard"
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 85.0,
        "urx": 525.0,
        "ury": 97.0
      },
      "content": [
        "Function-based: a checkerboard on x and y at once, anti-aliasing asked for"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 315.0,
        "lly": 100.0,
        "urx": 525.0,
        "ury": 270.0
      },
      "fill": {
        "shading": "held"
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 315.0,
        "lly": 70.0,
        "urx": 525.0,
        "ury": 82.0
      },
      "content": [
        "Radial, held to its own box"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 770.0,
        "urx": 595.276,
        "ury": 791.6
      },
      "content": [
        "The same gradients, in the inks a press lays down"
      ],
      "font": "DejaVuSans",
      "font_size": 18.0,
      "pages": [
        2
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 70.0,
        "lly": 560.0,
        "urx": 280.0,
        "ury": 730.0
      },
      "fill": {
        "shading": "process"
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 545.0,
        "urx": 310.0,
        "ury": 557.0
      },
      "content": [
        "Axial, four inks: 4 numbers a point"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        2
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 315.0,
        "lly": 560.0,
        "urx": 525.0,
        "ury": 730.0
      },
      "fill": {
        "shading": "process_radial"
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 315.0,
        "lly": 545.0,
        "urx": 555.0,
        "ury": 557.0
      },
      "content": [
        "Radial, four inks, outer extended"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        2
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 70.0,
        "lly": 330.0,
        "urx": 280.0,
        "ury": 500.0
      },
      "fill": {
        "shading": "one_ink"
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 315.0,
        "urx": 310.0,
        "ury": 327.0
      },
      "content": [
        "One ink of its own: 1 number a point"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        2
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 315.0,
        "lly": 330.0,
        "urx": 525.0,
        "ury": 500.0
      },
      "fill": {
        "shading": "two_inks"
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 315.0,
        "lly": 315.0,
        "urx": 555.0,
        "ury": 327.0
      },
      "content": [
        "Two inks at once: 2 numbers a point"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        2
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 70.0,
        "lly": 100.0,
        "urx": 280.0,
        "ury": 270.0
      },
      "fill": {
        "shading": "lab"
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 70.0,
        "lly": 85.0,
        "urx": 280.0,
        "ury": 97.0
      },
      "content": [
        "L*a*b*, three stops: 3 numbers a point"
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "pages": [
        2
      ]
    }
  ]
}
