From 7ab05bf4074712ee6d90271456aef883153c97d1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 13 Oct 2021 18:51:34 +0200 Subject: [PATCH] Renamed colors.gd to filter.gd. --- .../mat_maker_gd/nodes/common/{colors.gd => filter.gd} | 0 game/addons/mat_maker_gd/nodes/filter/filter.gd | 6 +++--- game/addons/mat_maker_gd/nodes/filter/grayscale.gd | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename game/addons/mat_maker_gd/nodes/common/{colors.gd => filter.gd} (100%) diff --git a/game/addons/mat_maker_gd/nodes/common/colors.gd b/game/addons/mat_maker_gd/nodes/common/filter.gd similarity index 100% rename from game/addons/mat_maker_gd/nodes/common/colors.gd rename to game/addons/mat_maker_gd/nodes/common/filter.gd diff --git a/game/addons/mat_maker_gd/nodes/filter/filter.gd b/game/addons/mat_maker_gd/nodes/filter/filter.gd index e5dcf594..44c152db 100644 --- a/game/addons/mat_maker_gd/nodes/filter/filter.gd +++ b/game/addons/mat_maker_gd/nodes/filter/filter.gd @@ -2,7 +2,7 @@ tool extends MMNode var Commons = preload("res://addons/mat_maker_gd/nodes/common/commons.gd") -var Colors = preload("res://addons/mat_maker_gd/nodes/common/colors.gd") +var Filter = preload("res://addons/mat_maker_gd/nodes/common/filter.gd") var Shapes = preload("res://addons/mat_maker_gd/nodes/common/shapes.gd") var image : Image @@ -61,14 +61,14 @@ var p_o91644_brightness = 0.000000000; var p_o91644_contrast = 1.000000000; func brightness_contrast(color : Color) -> Color: - return Colors.brightness_contrast(color, p_o91644_brightness, p_o91644_contrast); + return Filter.brightness_contrast(color, p_o91644_brightness, p_o91644_contrast); var p_o102649_hue = 0.000000000; var p_o102649_saturation = 1.000000000; var p_o102649_value = 1.000000000; func adjust_hsv(color : Color) -> Color: - return Colors.adjust_hsv(color, p_o102649_hue, p_o102649_saturation, p_o102649_value) + return Filter.adjust_hsv(color, p_o102649_hue, p_o102649_saturation, p_o102649_value) func reffg(): return false diff --git a/game/addons/mat_maker_gd/nodes/filter/grayscale.gd b/game/addons/mat_maker_gd/nodes/filter/grayscale.gd index 47f8bad2..5cd45e71 100644 --- a/game/addons/mat_maker_gd/nodes/filter/grayscale.gd +++ b/game/addons/mat_maker_gd/nodes/filter/grayscale.gd @@ -2,7 +2,7 @@ tool extends MMNode var Commons = preload("res://addons/mat_maker_gd/nodes/common/commons.gd") -var Colors = preload("res://addons/mat_maker_gd/nodes/common/colors.gd") +var Filter = preload("res://addons/mat_maker_gd/nodes/common/filter.gd") var Shapes = preload("res://addons/mat_maker_gd/nodes/common/shapes.gd") var image : Image @@ -42,7 +42,7 @@ func gen() -> void: var f : float = Shapes.shape_circle(v, 3, 1.0 * 1.0, 1.0) - f = Colors.grayscale_luminosity(Vector3(f, f, f)); + f = Filter.grayscale_luminosity(Vector3(f, f, f)); var c : Color = Color(f, f, f, 1)