Godot Version
4.6.2
Question
For some reason the particle fades from red to white? The blood particle texture is just a 6x6 pixel texture of a white circle outlined with black.
particles.global_position = get_global_mouse_position()
particles.amount = randi_range(5, 8)
particles.texture = load("res://art/blood_particle.png")
# time
particles.one_shot = true
particles.explosiveness = 0.8
# direction
particles.direction = Vector2(0, -1)
particles.spread = 100.0
# gravity
particles.gravity.y = 500.0
# initial velocity
particles.initial_velocity_min = 60.0
particles.initial_velocity_max = 150.0
# scale
particles.scale_amount_min = 1.0
particles.scale_amount_max = 1.0
# color
var gradient : Gradient = Gradient.new()
gradient.add_point(0.0, Color("fb3e30ff"))
gradient.add_point(0.5, Color("fb3e30ff"))
gradient.add_point(1.0, Color("fb3e3000"))
particles.color_ramp = gradient
add_child(particles)