pgyore
1
Is it possible to define “blah = vec4(0,0,0,0)” , and then “blah = myImage:get(1,1)” and get all four values, not just one?
I only get the first value. This is probably a Lua thing, not Codea, but thought I would ask here since I am trying to do this in my program.
Thank you.
GR00G0
2
Since youre only using one vatiable it only gives you one. And Image:get() returns 4 different int values not a vec4
You can do
blah = vec4(myImage:get(1,1))
pgyore
5
Thank you, LoopSpace. That is what I was looking for.
Regards.