how to read the color of a ColorRect node???

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kaz3m

i tried

var num = 0
for box in nodes:
	if num == 0:
		
		var starting_point = box.color()
		print(starting_point)
	num += 1

result :

Invalid call. Nonexistent function 'color' in base 'ColorRect'.
:bust_in_silhouette: Reply From: Wakatta

The color in ColorRect is a property and not a function so remove the ()

var num = 0
for box in nodes:
    if num == 0:
        var starting_point = box.color
        print(starting_point)
    num += 1