note 90479 added to function.imagecolorallocate

From: Date: Fri, 24 Apr 2009 05:57:29 +0000
Subject: note 90479 added to function.imagecolorallocate
Groups: php.notes 
Request: Send a blank email to php-notes+get-153651@lists.php.net to get a copy of this message
In the the hsv2rgb function from tyberis below, replace return(array($q[($i+4)%5],$q[($i+2)%5],$q[$i%5])); with return(array($q[($i+4)%6],$q[($i+2)%6],$q[$i%6])); then it seems to work :-) HC ---- Server IP: 80.241.173.5 Probable Submitter: 82.67.6.6 ---- Manual Page -- http://www.php.net/manual/en/function.imagecolorallocate.php Edit -- https://master.php.net/note/edit/90479 Del: integrated -- https://master.php.net/note/delete/90479/integrated Del: useless -- https://master.php.net/note/delete/90479/useless Del: bad code -- https://master.php.net/note/delete/90479/bad+code Del: spam -- https://master.php.net/note/delete/90479/spam Del: non-english -- https://master.php.net/note/delete/90479/non-english Del: in docs -- https://master.php.net/note/delete/90479/in+docs Del: other reasons-- https://master.php.net/note/delete/90479 Reject -- https://master.php.net/note/reject/90479 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153651) next »