kuligs2
Sorry I thought , this would be more convenient , I'm new to forums in general , I'll paste the code here if that is the norm.
@tool
extends ColorRect
@onready var shape_sprite1 = $Sprite1
@onready var shape_sprite2 = $Sprite2
var svg_str = """
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="100" height="125" viewBox="0 0 100 125" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M84.548,13.463c-2.621,3.618-5.332,7.163-8.079,10.68C61.895,9.028,36.034,10.908,18.634,19.39 c-1.735,0.846-0.217,3.426,1.51,2.583c17.643-8.599,39.176-8.981,54.388,4.657c-10.094,12.744-20.814,24.981-31.25,37.456 c-4.515-4.647-6.024-12.084-6.924-18.2c-0.642-4.36-7.245-2.499-6.609,1.823c1.336,9.079,4.384,18.718,12.237,24.135 c1.171,0.808,3.231,0.571,4.152-0.535c10.946-13.174,22.245-26.047,32.91-39.435c8.343,12.937,2.167,30.542-7.992,41.167 c-10.522,11-27.784,14.038-42.07,10.313c-24.049-6.27-17.528-32.484-6.895-47.676c1.11-1.585-1.486-3.079-2.583-1.51 C8.684,49.628,2.425,71.21,21.227,83.276c14.998,9.626,37.018,4.139,49.898-6.24c14.162-11.413,19.197-31.953,9.65-47.349 c3.307-4.195,6.551-8.436,9.69-12.766C93.064,13.335,87.114,9.921,84.548,13.463z"/></svg>
"""
var val : int = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var image = Image.new()
image.load_svg_from_string(svg_str)
image.fix_alpha_edges()
image.premultiply_alpha()
shape_sprite1.texture = ImageTexture.create_from_image(image)
shape_sprite1.position = size * 0.2
var image2 = Image.new()
image2.load("res://Darkness.png")
shape_sprite2.texture = ImageTexture.create_from_image(image2)
shape_sprite2.position = size * 0.5
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass