Skip to content

Instantly share code, notes, and snippets.

@jennschiffer
Forked from bwinton/Quick save as PXON.jstalk
Last active October 17, 2015 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennschiffer/326e6445c4da13e1932b to your computer and use it in GitHub Desktop.
Save jennschiffer/326e6445c4da13e1932b to your computer and use it in GitHub Desktop.
An Acorn Plugin to save files as PXON, (forked & updated for PXON v. 0.0.2
/*
How to install this plugin:
1) Choose Acorn's Help ▸ Open Acorn's App Support Folder menu item.
2) Place this script in the Plug-Ins folder (and make sure it ends with .jstalk)
3) Restart Acorn. The plugin will now show up in the Filter menu.
ACScriptMenuTitle=Convert to PXON
ACShortcutKey=p
ACShortcutMaskKey=command control
ACIsActionKey=true
*/
function append(data, string) {
data.appendData(string.dataUsingEncoding(NSUTF8StringEncoding));
}
function isoDate(date) {
dateFormatter = NSDateFormatter.alloc().init();
dateFormatter.setLocale(NSLocale.localeWithLocaleIdentifier('en_US_POSIX'));
dateFormatter.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
return dateFormatter.stringFromDate(date);
}
function getYear(date) {
dateFormatter = NSDateFormatter.alloc().init();
dateFormatter.setLocale(NSLocale.localeWithLocaleIdentifier('en_US_POSIX'));
dateFormatter.setDateFormat('yyyy');
return dateFormatter.stringFromDate(date);
}
function main(image, doc, layer) {
var savePanel = NSSavePanel.savePanel();
savePanel.setExtensionHidden(false);
savePanel.setAllowedFileTypes(['pxon']);
savePanel.setNameFieldStringValue(doc.displayName().stringByAppendingPathExtension('pxon'));
if (savePanel.runModal()) {
var cgimg = doc.CIImage();
var data = NSMutableData.data();
var bitmap = NSBitmapImageRep.alloc().initWithCIImage(cgimg);
var props = doc.exifPropertiesForSaving()['{PNG}'];
var software = props['Software'];
var artist = props['Author'] || NSFullUserName();
var title = props['Title'] || savePanel.nameFieldStringValue().stringByDeletingPathExtension();
var description = props['Description'];
var year = getYear(doc.fileModificationDate() || NSDate.date());
var copyright = props['Copyright'] || NSString.stringWithFormat(@'%@ %@', artist, year);
var date = isoDate(doc.fileModificationDate() || NSDate.date());
append(data, @'{\n');
append(data, @' "exif": {\n');
append(data, NSString.stringWithFormat(@' "software": "%@",\n', software));
append(data, NSString.stringWithFormat(@' "artist": "%@",\n', artist));
append(data, NSString.stringWithFormat(@' "imageDescription": "%@",\n', title));
if (description) {
append(data, NSString.stringWithFormat(@' "userComment": "%@",\n', description));
}
if (copyright) {
append(data, NSString.stringWithFormat(@' "copyright": "%@",\n', copyright));
}
append(data, NSString.stringWithFormat(@' "dateTime": "%@"\n', date));
append(data, @' },\n');
append(data, @' "pxif": {\n');
append(data, @' "pixels": [\n');
var size = doc.canvasSize();
for (x = 0; x < size.width; x++) {
for (y = 0; y < size.height; y++) {
var pixel = [bitmap colorAtX:x y:y];
append(data, @' {\n');
append(data, NSString.stringWithFormat(@' "x": %@,\n', x));
append(data, NSString.stringWithFormat(@' "y": %@,\n', y));
append(data, NSString.stringWithFormat(@' "color": "rgba(%@, %@, %@, %@)",\n',
pixel.redComponent(), pixel.greenComponent(), pixel.blueComponent(), pixel.alphaComponent()
));
append(data, @' "size": 1\n');
append(data, @' },\n');
}
}
append(data, @' ],\n');
append(data, @' "dataURL" : "data:image/png;base64,');
data.appendData(doc.dataOfType("public.png").base64EncodedDataWithOptions(nil));
append(data, @'"\n');
append(data, @' }\n');
append(data, @'}\n');
data.writeToURL_atomically(savePanel.URL(), true);
}
}
{
"exif": {
"software": "Flying Meat Acorn 5.1",
"artist": "Blake Winton",
"imageDescription": "My Test Image",
"userComment": "Just a test image to use.",
"copyright": "Blake Winton - 2015",
"dateTime": "2015-10-12T17:00:43.000Z"
},
"pxif": {
"pixels": [
{
"x": 0,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 2,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 3,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 0,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 8,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 0,
"y": 9,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 0,
"y": 10,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 12,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 13,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 0,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 2,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 3,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 1,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 8,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 9,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 10,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 1,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 12,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 13,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 1,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 2,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 3,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 2,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 8,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 9,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 10,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 2,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 12,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 13,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 2,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 2,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 3,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 4,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 3,
"y": 5,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 3,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 8,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 9,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 10,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 3,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 3,
"y": 12,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 3,
"y": 13,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 3,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 4,
"y": 0,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 1,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 2,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 3,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 4,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 5,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 6,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 4,
"y": 8,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 4,
"y": 9,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 4,
"y": 10,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 4,
"y": 12,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 13,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 4,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 2,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 3,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 4,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 5,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 6,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 5,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 8,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 9,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 10,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 5,
"y": 11,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 5,
"y": 12,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 5,
"y": 13,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 5,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 2,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 3,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 7,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 8,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 9,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 10,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 11,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 12,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 6,
"y": 13,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 6,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 2,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 7,
"y": 3,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 8,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 7,
"y": 9,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 7,
"y": 10,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 11,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 7,
"y": 12,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 7,
"y": 13,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 7,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 2,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 8,
"y": 3,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 8,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 9,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 10,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 8,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 12,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 8,
"y": 13,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 8,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 0,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 1,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 2,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 9,
"y": 3,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 9,
"y": 4,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 5,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 6,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 7,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 8,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 9,
"y": 9,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 9,
"y": 10,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 11,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 12,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
},
{
"x": 9,
"y": 13,
"color": "rgba(0.4941176470588236, 0.3294117647058823, 0.5176470588235295, 1)",
"size": 1
},
{
"x": 9,
"y": 14,
"color": "rgba(0.625, 0.1625, 0.7875000000000001, 0.3137254901960784)",
"size": 1
}
],
"dataURL" : "data:image/png;base64,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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment