R0J0hound - sorry, one more question. For some reason I got it to work using the int(), but I've just tried to recreate something I have in a different layout (which is working) and its literally the same code, but I can't figure out why it's not working in this new instance.
I'm trying to just get the rgb of a canvas object based on the mouse position (the canvas object is being filled by gradient). I'm just doing "set text box to "rgb("&userGradient.redAt(Mouse.X, Mouse.Y)&","&userGradient.greenAt(Mouse.X, Mouse.Y)&","&userGradient.blueAt(Mouse.X, Mouse.Y)&")", but it's always returning rgb(0,0,0).
I've tried int() on both individual mouse.x and mouse.y, as well as the entirety of the redAt, greenAt, etc.
It just keeps returning 0 for all the paramenters.
EDIT AGAIN (sorry)
AhHA! Got it - I didn't know this breaks when you resize a canvas. For those who were wondering you fix by setting the mouse.x - canvas.x, and mouse.y - canvas.y for each.