16 lines
461 B
GDScript
16 lines
461 B
GDScript
extends GL_Node
|
|
|
|
func _ready():
|
|
super._ready()
|
|
_set_title("Mix Colors")
|
|
_create_row("Factor",0.0,Color.WHITE,false,null,0)
|
|
_create_row("Color A",Color.RED,null,true,Color.RED,0)
|
|
_create_row("Color B",Color.BLUE,null,true,Color.BLUE,0)
|
|
_update_visuals()
|
|
|
|
func _process(delta):
|
|
super._process(delta)
|
|
apply_pick_values()
|
|
|
|
rows["Factor"]["output"] = rows["Color A"]["input"].lerp(rows["Color B"]["input"],rows["Factor"]["input"])
|
|
_send_input("Factor")
|