View Single Post
  #3  
Old 05-05-2012, 01:44 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote