When a custom brush is selected, it now appears as an indicator at the cursor

Also moved blend_image_with_color() to Global and the custom brush image (resized & blended accordingly with the selected color and interpolation factor) is now updated every time something changes (size, color etc) and not every time you draw. This is not true for the eraser, however, as it must be blended with Color(0, 0, 0, 0)
This commit is contained in:
OverloadedOrama 2019-09-27 20:05:24 +03:00
parent 086b4f1423
commit 7ff823f3a5
6 changed files with 159 additions and 96 deletions

View file

@ -1,13 +1,5 @@
extends Viewport
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
func _ready() -> void:
world_2d = $"../../ViewportContainer/Viewport".world_2d
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass