using Godot; public class Particle : Node2D { private float _spriteHue; private Sprite _spriteNode; public float Hue { get => _spriteHue; set { _spriteHue = Mathf.Clamp(value, 0, 1); _spriteNode.Modulate = Color.FromHsv(_spriteHue, 1, 1); } } public override void _Ready() { _spriteNode = GetNode("Sprite"); } }