PHP & Others

GD 그라디에이션효과

페이지 정보

본문

http://myhome.naver.com/cinuae/images/g.html



<?
//그라디에이션효과1?
$width = 300;
$center = $width / 2;
$colordivs = 255 / $center;
$im = @imagecreate($width, $width);
$back_color = imagecolorallocate($im, 20, 30, 40);
imagefill($im, 0, 0, $back_color);
for ($i = 0; $i <= $center; $i++){
$diametre = $width - 2 * $i;
$el_color = imagecolorallocate($im, $i * $colordivs, 0, 0);
imagearc($im, $center, $center, $diametre, $diametre, 0, 360, $el_color);
imagefilltoborder($im, $center, $center, $el_color, $el_color);
}
imagepng($im);
?>


<?
//그라디에이션효과2?
$im = imagecreate(255,400);
$back_color = imagecolorallocate($im, 0, 0, 0);
imagefill($im, 0, 0, $back_color);
for ($i = 0; $i <= 255; $i++){
$el_color = imagecolorallocate($im, 0, 0, (255-$i));
imageline($im,0,$i,300,$i,$el_color);
}
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>

 
 

 
 디토 오옷! 멋집니다.; 08/13 10:58:14 
 
 line 멋진데요.... 08/13 17:49:26 
 
 Npiza 너무 멋지네요.. 와 너무신기하네요..
마소 필터중에도 그라데이션이 있긴 있어여..
<TD align=center id=sally style="PADDING: 10px; WIDTH: 100%; HEIGHT:100%;
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#0083FF', EndColorStr='#9FD1FF');
FONT-SIZE: 13pt; FONT-WEIGHT:bold; COLOR: #00c000;">
근데 원은 없는거 같네요.. 좋은팁 감사합니다..

관련자료

등록된 댓글이 없습니다.
Today's proverb
유쾌한 사람은 자기 일에만 몰두하는 사람이 아니다. 때론 자신의 일을 전부 제쳐놓고 타인의 문제에 전력을 쏟는 열정이 있는 사람이다. 타인에게 자신의 힘을 나누어주고 마음을 열어주는 것은 자신의 삶을 행복하게 만드는 방법이다.