Howdy,
I want to have a conditional where I check to see if a node is a certain color.
local green = vmath.vector4(0.1, 1, 0.1, 1)
print("=== node color info: "..tostring(gui.get_color(node)))
if gui.get_color(node) == green then
stuff()
end
This works occasionally, but frequently fails because of rounding issues.
My output often looks like:
=== node color info: vmath.vector4(0.10000002384186, 1, 0.10000000149012, 1)
Any ideas on how to solve this?
Thanks!