Graphite/node-graph/graphene-cli/test_files/hue.graphite
2023-12-08 15:29:46 -08:00

1329 lines
81 KiB
Text

{
"document_legacy": {
"root": {
"visible": true,
"name": null,
"data": {
"Folder": {
"next_assignment_id": 4489767774157203372,
"layer_ids": [
4489767774157203371
],
"layers": [
{
"visible": true,
"name": null,
"data": {
"Layer": {
"network": {
"inputs": [],
"outputs": [
{
"node_id": 3,
"node_output_index": 0
}
],
"nodes": {
"5624267029878925495": {
"name": "GpuImage",
"inputs": [
{
"Node": {
"node_id": 1,
"output_index": 0,
"lambda": false
}
},
{
"Node": {
"node_id": 7287024673900605762,
"output_index": 0,
"lambda": false
}
},
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_std::executor::MapGpuSingleImageNode<_>"
}
},
"metadata": {
"position": [
27,
4
]
},
"path": null
},
"3": {
"name": "Output",
"inputs": [
{
"Node": {
"node_id": 11144230787879644735,
"output_index": 0,
"lambda": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::ops::IdentityNode"
}
},
"metadata": {
"position": [
49,
4
]
},
"path": null
},
"11144230787879644735": {
"name": "RenderTexture",
"inputs": [
{
"Node": {
"node_id": 8006866457842175788,
"output_index": 0,
"lambda": false
}
},
{
"Node": {
"node_id": 13282494292107396350,
"output_index": 0,
"lambda": false
}
},
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Network": {
"inputs": [
1,
1,
0
],
"outputs": [
{
"node_id": 1,
"node_output_index": 0
}
],
"nodes": {
"1": {
"name": "Render Texture",
"inputs": [
{
"Network": {
"Concrete": {
"name": "gpu_executor::ShaderInputFrame<wgpu_executor::WgpuExecutor>",
"size": 56,
"align": 8
}
}
},
{
"Network": {
"Concrete": {
"name": "alloc::sync::Arc<graphene_core::application_io::SurfaceHandle<wgpu::Surface>>",
"size": 4,
"align": 4
}
}
},
{
"Node": {
"node_id": 0,
"output_index": 0,
"lambda": false
}
}
],
"implementation": {
"Unresolved": {
"name": "gpu_executor::RenderTextureNode<_, _>"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
},
"0": {
"name": "Extract Executor",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::ops::IntoNode<_, &WgpuExecutor>"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
},
"metadata": {
"position": [
42,
4
]
},
"path": null
},
"2037214651900404495": {
"name": "Black & White",
"inputs": [
{
"Value": {
"tagged_value": {
"ImageFrame": {
"image": {
"width": 0,
"height": 0,
"data": ""
},
"transform": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
},
"exposed": true
}
},
{
"Value": {
"tagged_value": {
"Color": {
"red": 0.0,
"green": 0.0,
"blue": 0.0,
"alpha": 1.0
}
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 40.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 60.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 40.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 60.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 20.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 80.0
},
"exposed": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::raster::BlackAndWhiteNode<_, _, _, _, _, _, _>"
}
},
"metadata": {
"position": [
8,
5
]
},
"path": null
},
"10587777034180159163": {
"name": "Hue/Saturation",
"inputs": [
{
"Value": {
"tagged_value": {
"ImageFrame": {
"image": {
"width": 0,
"height": 0,
"data": ""
},
"transform": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
},
"exposed": true
}
},
{
"Value": {
"tagged_value": {
"F32": 20.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 0.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 0.0
},
"exposed": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::raster::HueSaturationNode<_, _, _>"
}
},
"metadata": {
"position": [
8,
6
]
},
"path": null
},
"13282494292107396350": {
"name": "CreateGpuSurface",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Network": {
"inputs": [
0
],
"outputs": [
{
"node_id": 1,
"node_output_index": 0
}
],
"nodes": {
"0": {
"name": "Create Gpu Surface",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Unresolved": {
"name": "gpu_executor::CreateGpuSurfaceNode"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
},
"1": {
"name": "Cache",
"inputs": [
{
"ShortCircut": {
"Concrete": {
"name": "()",
"size": 0,
"align": 1
}
}
},
{
"Node": {
"node_id": 0,
"output_index": 0,
"lambda": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::memo::MemoNode<_, _>"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
},
"metadata": {
"position": [
32,
5
]
},
"path": null
},
"5830922276166168539": {
"name": "Identity",
"inputs": [
{
"Value": {
"tagged_value": "None",
"exposed": true
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::ops::IdentityNode"
}
},
"metadata": {
"position": [
8,
4
]
},
"path": null
},
"7451453699006996668": {
"name": "Vibrance",
"inputs": [
{
"Value": {
"tagged_value": {
"ImageFrame": {
"image": {
"width": 0,
"height": 0,
"data": ""
},
"transform": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
},
"exposed": true
}
},
{
"Value": {
"tagged_value": {
"F32": 57.672
},
"exposed": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::raster::VibranceNode<_>"
}
},
"metadata": {
"position": [
8,
9
]
},
"path": null
},
"7287024673900605762": {
"name": "Extract",
"inputs": [
{
"Node": {
"node_id": 10587777034180159163,
"output_index": 0,
"lambda": false
}
}
],
"implementation": "Extract",
"metadata": {
"position": [
16,
6
]
},
"path": null
},
"7980892639443901364": {
"name": "Invert RGB",
"inputs": [
{
"Value": {
"tagged_value": {
"ImageFrame": {
"image": {
"width": 0,
"height": 0,
"data": ""
},
"transform": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
},
"exposed": true
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::raster::InvertRGBNode"
}
},
"metadata": {
"position": [
8,
7
]
},
"path": null
},
"16497589343611227601": {
"name": "Load Image",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
},
{
"Value": {
"tagged_value": {
"String": "graphite:null"
},
"exposed": false
}
}
],
"implementation": {
"Network": {
"inputs": [
0,
0
],
"outputs": [
{
"node_id": 1,
"node_output_index": 0
}
],
"nodes": {
"0": {
"name": "Load Resource",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
},
{
"Network": {
"Concrete": {
"name": "alloc::string::String",
"size": 12,
"align": 4
}
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_std::wasm_application_io::LoadResourceNode<_>"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
},
"1": {
"name": "Decode Image",
"inputs": [
{
"Node": {
"node_id": 0,
"output_index": 0,
"lambda": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_std::wasm_application_io::DecodeImageNode"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
},
"metadata": {
"position": [
5,
1
]
},
"path": null
},
"18254980474364940368": {
"name": "Memoize",
"inputs": [
{
"Value": {
"tagged_value": "None",
"exposed": false
}
},
{
"Node": {
"node_id": 16497589343611227601,
"output_index": 0,
"lambda": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::memo::MemoNode<_, _>"
}
},
"metadata": {
"position": [
13,
1
]
},
"path": null
},
"13651929780047367852": {
"name": "Levels",
"inputs": [
{
"Value": {
"tagged_value": {
"ImageFrame": {
"image": {
"width": 0,
"height": 0,
"data": ""
},
"transform": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
},
"exposed": true
}
},
{
"Value": {
"tagged_value": {
"F32": 12.6984
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 32.9806
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 86.7725
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 0.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 100.0
},
"exposed": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::raster::LevelsNode<_, _, _, _, _>"
}
},
"metadata": {
"position": [
8,
8
]
},
"path": null
},
"1": {
"name": "Transform",
"inputs": [
{
"Node": {
"node_id": 18254980474364940368,
"output_index": 0,
"lambda": false
}
},
{
"Value": {
"tagged_value": {
"DVec2": [
880.6764305713131,
368.44115971583955
]
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"F32": 0.0
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"DVec2": [
843.2940793504903,
632.4705595128677
]
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"DVec2": [
0.0,
0.0
]
},
"exposed": false
}
},
{
"Value": {
"tagged_value": {
"DVec2": [
0.5,
0.5
]
},
"exposed": false
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::transform::TransformNode<_, _, _, _, _>"
}
},
"metadata": {
"position": [
21,
2
]
},
"path": null
},
"8006866457842175788": {
"name": "UploadTexture",
"inputs": [
{
"Node": {
"node_id": 5624267029878925495,
"output_index": 0,
"lambda": false
}
},
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Network": {
"inputs": [
1,
0
],
"outputs": [
{
"node_id": 1,
"node_output_index": 0
}
],
"nodes": {
"1": {
"name": "Upload Texture",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::raster::image::ImageFrame<graphene_core::raster::color::Color>",
"size": 72,
"align": 8
}
}
},
{
"Node": {
"node_id": 0,
"output_index": 0,
"lambda": false
}
}
],
"implementation": {
"Unresolved": {
"name": "gpu_executor::UploadTextureNode<_>"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
},
"0": {
"name": "Extract Executor",
"inputs": [
{
"Network": {
"Concrete": {
"name": "graphene_core::application_io::EditorApi<graphene_std::wasm_application_io::WasmApplicationIo>",
"size": 96,
"align": 8
}
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::ops::IntoNode<_, &WgpuExecutor>"
}
},
"metadata": {
"position": [
0,
0
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
},
"metadata": {
"position": [
35,
4
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
}
},
"transform": {
"matrix2": [
843.2940793504903,
0.0,
0.0,
632.4705595128677
],
"translation": [
459.5293908960679,
52.705879959405706
]
},
"preserve_aspect": true,
"pivot": [
0.5,
0.5
],
"blend_mode": "Normal",
"opacity": 1.0
}
]
}
},
"transform": {
"matrix2": [
0.44995911033081615,
0.0,
0.0,
0.44995911033081615
],
"translation": [
-54.99999999999994,
228.0
]
},
"preserve_aspect": true,
"pivot": [
0.5,
0.5
],
"blend_mode": "Normal",
"opacity": 1.0
},
"document_network": {
"inputs": [],
"outputs": [
{
"node_id": 0,
"node_output_index": 0
}
],
"nodes": {
"0": {
"name": "Output",
"inputs": [
{
"Value": {
"tagged_value": {
"GraphicGroup": []
},
"exposed": true
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::ops::IdentityNode"
}
},
"metadata": {
"position": [
8,
4
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
},
"saved_document_identifier": 4964327076847783748,
"auto_saved_document_identifier": 11707807670791570700,
"name": "hue_no_cache.graphite",
"version": "0.0.16",
"document_mode": "DesignMode",
"view_mode": "Normal",
"snapping_enabled": true,
"overlays_visible": true,
"layer_metadata": [
[
[],
{
"selected": false,
"expanded": true
}
],
[
[
4489767774157203371
],
{
"selected": true,
"expanded": false
}
]
],
"layer_range_selection_reference": [
4489767774157203371
],
"navigation_handler": {
"pan": [
-1186.1884042415631,
-667.5946688108043
],
"panning": false,
"snap_tilt": false,
"snap_tilt_released": false,
"tilt": 0.0,
"tilting": false,
"zoom": 0.44995911033081615,
"zooming": false,
"snap_zoom": false,
"mouse_position": [
0.0,
0.0
]
},
"artboard_message_handler": {
"artboards_document": {
"root": {
"visible": true,
"name": null,
"data": {
"Folder": {
"next_assignment_id": 17819678939779928469,
"layer_ids": [
17819678939779928468
],
"layers": [
{
"visible": true,
"name": null,
"data": {
"Shape": {
"shape": {
"elements": [
{
"points": [
{
"position": [
0.0,
0.0
],
"manipulator_type": "Anchor"
},
null,
null
]
},
{
"points": [
{
"position": [
0.0,
1.0
],
"manipulator_type": "Anchor"
},
null,
null
]
},
{
"points": [
{
"position": [
1.0,
1.0
],
"manipulator_type": "Anchor"
},
null,
null
]
},
{
"points": [
{
"position": [
1.0,
0.0
],
"manipulator_type": "Anchor"
},
null,
null
]
},
{
"points": [
null,
null,
null
]
}
],
"element_ids": [
1,
2,
3,
4,
5
],
"next_id": 5
},
"style": {
"stroke": null,
"fill": {
"Solid": {
"red": 1.0,
"green": 1.0,
"blue": 1.0,
"alpha": 1.0
}
}
},
"render_index": 1
}
},
"transform": {
"matrix2": [
1920.0,
0.0,
-0.0,
1080.0
],
"translation": [
0.0,
0.0
]
},
"preserve_aspect": true,
"pivot": [
0.5,
0.5
],
"blend_mode": "Normal",
"opacity": 1.0
}
]
}
},
"transform": {
"matrix2": [
0.44995911033081615,
0.0,
0.0,
0.44995911033081615
],
"translation": [
-54.99999999999994,
228.0
]
},
"preserve_aspect": true,
"pivot": [
0.5,
0.5
],
"blend_mode": "Normal",
"opacity": 1.0
},
"document_network": {
"inputs": [],
"outputs": [
{
"node_id": 0,
"node_output_index": 0
}
],
"nodes": {
"0": {
"name": "Output",
"inputs": [
{
"Value": {
"tagged_value": {
"GraphicGroup": []
},
"exposed": true
}
}
],
"implementation": {
"Unresolved": {
"name": "graphene_core::ops::IdentityNode"
}
},
"metadata": {
"position": [
8,
4
]
},
"path": null
}
},
"disabled": [],
"previous_outputs": null
}
},
"artboard_ids": [
17819678939779928468
]
},
"properties_panel_message_handler": {
"active_selection": [
[
4489767774157203371
],
"Artwork"
]
}
}