This doesn't just apply to that particular function:
PHP Code:
with (findimg(200)) {
red = 1; // Wants a value between 0 and 1
green = 1;
blue = 1;
}
Therefore in order to convert a color specified by using the 0-255 range into 0-1 range color, you must divide by 255.