go-hep.org/x/hep@v0.38.1/hplot/vgop/testdata/simple_golden.json (about)

     1  {
     2    "size": {
     3      "width": 10,
     4      "height": 20
     5    },
     6    "ops": [
     7      {
     8        "type": "Push",
     9        "value": {}
    10      },
    11      {
    12        "type": "SetLineWidth",
    13        "value": {
    14          "width": 2
    15        }
    16      },
    17      {
    18        "type": "SetLineDash",
    19        "value": {
    20          "dashes": [
    21            1,
    22            2
    23          ],
    24          "offsets": 4
    25        }
    26      },
    27      {
    28        "type": "SetColor",
    29        "value": {
    30          "color": {
    31            "r": 65535,
    32            "g": 0,
    33            "b": 0,
    34            "a": 65535
    35          }
    36        }
    37      },
    38      {
    39        "type": "SetColor",
    40        "value": {
    41          "color": {
    42            "r": 25700,
    43            "g": 25700,
    44            "b": 25700,
    45            "a": 65535
    46          }
    47        }
    48      },
    49      {
    50        "type": "Rotate",
    51        "value": {
    52          "angle": 1.5707963267948966
    53        }
    54      },
    55      {
    56        "type": "Translate",
    57        "value": {
    58          "point": {
    59            "x": 10,
    60            "y": 20
    61          }
    62        }
    63      },
    64      {
    65        "type": "Scale",
    66        "value": {
    67          "x": 15,
    68          "y": 25
    69        }
    70      },
    71      {
    72        "type": "Pop",
    73        "value": {}
    74      },
    75      {
    76        "type": "Stroke",
    77        "value": {
    78          "path": []
    79        }
    80      },
    81      {
    82        "type": "Stroke",
    83        "value": {
    84          "path": [
    85            {
    86              "type": 0,
    87              "pos": {
    88                "x": 1,
    89                "y": 2
    90              }
    91            },
    92            {
    93              "type": 1,
    94              "pos": {
    95                "x": 2,
    96                "y": 3
    97              }
    98            },
    99            {
   100              "type": 2,
   101              "pos": {
   102                "x": 3,
   103                "y": 4
   104              },
   105              "radius": 5,
   106              "start": 6,
   107              "angle": 7
   108            },
   109            {
   110              "type": 3,
   111              "pos": {
   112                "x": 4,
   113                "y": 5
   114              },
   115              "ctl": [
   116                {
   117                  "x": 6,
   118                  "y": 7
   119                }
   120              ]
   121            },
   122            {
   123              "type": 3,
   124              "pos": {
   125                "x": 5,
   126                "y": 6
   127              },
   128              "ctl": [
   129                {
   130                  "x": 7,
   131                  "y": 8
   132                },
   133                {
   134                  "x": 9,
   135                  "y": 10
   136                }
   137              ]
   138            },
   139            {
   140              "type": 4,
   141              "pos": {
   142                "x": 0,
   143                "y": 0
   144              }
   145            }
   146          ]
   147        }
   148      },
   149      {
   150        "type": "Fill",
   151        "value": {
   152          "path": []
   153        }
   154      },
   155      {
   156        "type": "Fill",
   157        "value": {
   158          "path": [
   159            {
   160              "type": 0,
   161              "pos": {
   162                "x": 1,
   163                "y": 2
   164              }
   165            },
   166            {
   167              "type": 1,
   168              "pos": {
   169                "x": 2,
   170                "y": 3
   171              }
   172            },
   173            {
   174              "type": 2,
   175              "pos": {
   176                "x": 3,
   177                "y": 4
   178              },
   179              "radius": 5,
   180              "start": 6,
   181              "angle": 7
   182            },
   183            {
   184              "type": 3,
   185              "pos": {
   186                "x": 4,
   187                "y": 5
   188              },
   189              "ctl": [
   190                {
   191                  "x": 6,
   192                  "y": 7
   193                }
   194              ]
   195            },
   196            {
   197              "type": 3,
   198              "pos": {
   199                "x": 5,
   200                "y": 6
   201              },
   202              "ctl": [
   203                {
   204                  "x": 7,
   205                  "y": 8
   206                },
   207                {
   208                  "x": 9,
   209                  "y": 10
   210                }
   211              ]
   212            },
   213            {
   214              "type": 4,
   215              "pos": {
   216                "x": 0,
   217                "y": 0
   218              }
   219            }
   220          ]
   221        }
   222      },
   223      {
   224        "type": "FillString",
   225        "value": {
   226          "font": {
   227            "typeface": "Liberation",
   228            "variant": "Serif",
   229            "size": 13
   230          },
   231          "point": {
   232            "x": 10,
   233            "y": 20
   234          },
   235          "string": "hello\nworld"
   236        }
   237      },
   238      {
   239        "type": "FillString",
   240        "value": {
   241          "font": {
   242            "typeface": "Liberation",
   243            "variant": "Serif",
   244            "size": 20
   245          },
   246          "point": {
   247            "x": 20,
   248            "y": 30
   249          },
   250          "string": "BYE."
   251        }
   252      },
   253      {
   254        "type": "DrawImage",
   255        "value": {
   256          "Rect": {
   257            "min": {
   258              "x": 1,
   259              "y": 2
   260            },
   261            "max": {
   262              "x": 3,
   263              "y": 4
   264            }
   265          },
   266          "data": "aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUJRQUFBQWVDQUlBQUFDamNLazhBQUFBSmtsRVFWUjRuR0pKUzB0aklCY3drYTF6VlBPbzVsSE5vNXBITlk5cUhnS2FBUUVBQVAvL2ZKc0JjWFJTRWJrQUFBQUFTVVZPUks1Q1lJST0="
   267        }
   268      }
   269    ],
   270    "fonts": [
   271      {
   272        "typeface": "Liberation",
   273        "variant": "Serif",
   274        "size": 13
   275      },
   276      {
   277        "typeface": "Liberation",
   278        "variant": "Serif",
   279        "size": 20
   280      }
   281    ]
   282  }