Spudhead
05-01-2003, 11:06 AM
Following on from this thread (http://www.codingforums.com/showthread.php?s=&threadid=18272), I'm getting a 'parse error' on the following line:
$hexBrightness=(((299($rVal * $rVal * $rVal)) + (587($gVal * $gVal * $gVal)) + (114($bVal * $bVal * $bVal)))/1658137500);
Being completely unfamiliar with PHP, I don't know what's wrong or what to do about it. The brackets match up, the syntax looks ok (but what would I know?) Can anyone shed any light?
$hexBrightness=(((299($rVal * $rVal * $rVal)) + (587($gVal * $gVal * $gVal)) + (114($bVal * $bVal * $bVal)))/1658137500);
Being completely unfamiliar with PHP, I don't know what's wrong or what to do about it. The brackets match up, the syntax looks ok (but what would I know?) Can anyone shed any light?