From 35e6106815a202129068204644b74a4844ad5deb Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 17 Nov 2022 00:57:26 +0100 Subject: [PATCH] Test paint visual script. Also updated the engine to get the new class icons. --- HEADS | 2 +- game/PaintVisualGrid.gd | 9 +++++++++ game/Project.tscn | 41 +++++++++++++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 game/PaintVisualGrid.gd diff --git a/HEADS b/HEADS index 6d1ffd8..eb742b8 100644 --- a/HEADS +++ b/HEADS @@ -1 +1 @@ -{"engine": {"3.2": "64a9e86c5c20bd4bd5833f0563457d0126617489", "3.x": "9b512dd510207d32911064a1bbe15b80c91b006b"}, "world_generator": {"master": "260c430f11b0b591eaf4714516419aa327d2842c"}, "entity_spell_system": {"master": "3536f01bacf5f54cefb32b768cd020a1f94d0ade"}, "ui_extensions": {"master": "80a3b96fc56991a0f88a1d441ed1e3cebaf3307a"}, "texture_packer": {"master": "ae4d222fbaade063ed6f0bc9f3aaa53df68a7fed"}, "fastnoise": {"master": "46bb1f610bfb7171613b5c708d312bcf94e89356"}, "thread_pool": {"master": "0917511d04bb1aa308385b63ec88d3c182990628"}, "mesh_data_resource": {"master": "a062d871d49d954c5466b9de54b4075cb61cbef4"}, "mesh_utils": {"master": "b52a261c31f04fad624e5cfbcdcc4a45d61136da"}, "props": {"master": "2afd6eff45f9a921bdf4090ff3029def86df5cb5"}, "terraman_2d": {"master": "60a7e84a5dc2fc252b0c582dd8f877685d28d74a"}, "broken_seals_module": {"master": "52c5a81350db1c29d375c63d95010260911ec034"}, "rtile_map": {"master": "389070cfef387b69902e23e6c4ac53997b69e42e"}, "props_2d": {"master": "a45822b63519d7f9fb391ab6b1dced468c6f399d"}, "pandemonium_engine": {"master": "ef3110d4d1ce5e101a127615631c3e05e8906486"}} \ No newline at end of file +{"engine": {"3.2": "64a9e86c5c20bd4bd5833f0563457d0126617489", "3.x": "9b512dd510207d32911064a1bbe15b80c91b006b"}, "world_generator": {"master": "260c430f11b0b591eaf4714516419aa327d2842c"}, "entity_spell_system": {"master": "3536f01bacf5f54cefb32b768cd020a1f94d0ade"}, "ui_extensions": {"master": "80a3b96fc56991a0f88a1d441ed1e3cebaf3307a"}, "texture_packer": {"master": "ae4d222fbaade063ed6f0bc9f3aaa53df68a7fed"}, "fastnoise": {"master": "46bb1f610bfb7171613b5c708d312bcf94e89356"}, "thread_pool": {"master": "0917511d04bb1aa308385b63ec88d3c182990628"}, "mesh_data_resource": {"master": "a062d871d49d954c5466b9de54b4075cb61cbef4"}, "mesh_utils": {"master": "b52a261c31f04fad624e5cfbcdcc4a45d61136da"}, "props": {"master": "2afd6eff45f9a921bdf4090ff3029def86df5cb5"}, "terraman_2d": {"master": "60a7e84a5dc2fc252b0c582dd8f877685d28d74a"}, "broken_seals_module": {"master": "52c5a81350db1c29d375c63d95010260911ec034"}, "rtile_map": {"master": "389070cfef387b69902e23e6c4ac53997b69e42e"}, "props_2d": {"master": "a45822b63519d7f9fb391ab6b1dced468c6f399d"}, "pandemonium_engine": {"master": "01f078e016ad640bb94a4973ef4b677cee8bd109"}} \ No newline at end of file diff --git a/game/PaintVisualGrid.gd b/game/PaintVisualGrid.gd new file mode 100644 index 0000000..d74b744 --- /dev/null +++ b/game/PaintVisualGrid.gd @@ -0,0 +1,9 @@ +tool +extends PaintVisualGrid + +export(int) var grid_size : int = 1 setget set_gs + +func set_gs(var n) -> void: + grid_size = n + set_grid_size(n) + diff --git a/game/Project.tscn b/game/Project.tscn index b10505e..1d751e1 100644 --- a/game/Project.tscn +++ b/game/Project.tscn @@ -1,13 +1,50 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=8 format=2] [ext_resource path="res://PaintCanvas.gd" type="Script" id=1] [ext_resource path="res://PaintProject.gd" type="Script" id=2] +[ext_resource path="res://PaintVisualGrid.gd" type="Script" id=3] + +[sub_resource type="Shader" id=1] +code = "shader_type canvas_item;uniform float pixel_size : hint_range(0.01, 1.0);void fragment() { vec4 color = texture(TEXTURE, UV); float light = 0.8; float dark = 0.4; float val = dark; if ( int(UV.y * 8.0 * pixel_size) % 2 == 1 ) { if ( int(UV.x * 8.0 * pixel_size) % 2 == 1 ) { val = dark; } else { val = light; } } else { if ( int(UV.x * 8.0 * pixel_size) % 2 == 1 ) { val = light; } else { val = dark; } } color.rgb = vec3(val, val, val); COLOR = color;}" + +[sub_resource type="ShaderMaterial" id=2] +shader = SubResource( 1 ) +shader_param/pixel_size = 1.0 + +[sub_resource type="Image" id=5] +data = { +"data": PoolByteArray( 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255 ), +"format": "RGBA8", +"height": 32, +"mipmaps": false, +"width": 32 +} + +[sub_resource type="ImageTexture" id=4] +flags = 4 +flags = 4 +image = SubResource( 5 ) +size = Vector2( 32, 32 ) [node name="PaintProject" type="PaintProject"] size = Vector2i( 128, 128 ) -current_color = Color( 0.511169, 0.141401, 0.0907945, 1 ) +current_color = Color( 0.740442, 0.642524, 0.188976, 1 ) script = ExtResource( 2 ) +[node name="PaintCanvasBackground" type="PaintCanvasBackground" parent="."] +visible = false +material = SubResource( 2 ) +margin_right = 128.0 +margin_bottom = 128.0 +texture = SubResource( 4 ) +stretch_mode = 1 + +[node name="PaintVisualGrid" type="PaintVisualGrid" parent="."] +visible = false +margin_right = 128.0 +margin_bottom = 128.0 +script = ExtResource( 3 ) + [node name="PaintCanvas" type="PaintCanvas" parent="."] size = Vector2i( 128, 128 ) script = ExtResource( 1 )