<?php if (! $size > 0) { $size = 300; } $img = ImageCreate($size, $size); $color_alpha = ImageColorAllocate($img, 254, 254, 254); $color_white = ImageColorAllocate($img, 255, 255, 255); $color_black = ImageColorAllocate($img, 0, 0, 0); $color_gray = ImageColorAllocate($img, 192, 192, 192); $color_red = ImageColorAllocate($img, 255, 0, 0); $color_blue = ImageColorAllocate($img, 0, 0, 255); ImageColorTransparent($img, $color_alpha); ImageArc($img,$radius, $radius, $size, $size, 0, 360, $color_black); ImageFill($img, $radius, $radius, $color_white); $min = 0; while($min++ < 60) { if ($min % 15 == 0) $len = $radius / 5; elseif ($min % 5 == 0) $len = $radius / 10; else $len = $radius / 25; $ang = (2 * M_PI * $min) / 60; $x1 = sin($ang) * ($radius - $len) + $radius; $y1 = cos($ang) * ($radius - $len) + $radius; $x2 = (1 + sin($ang)) * $radius; $y2 = (1 + cos($ang)) * $radius; ImageLine($img, $x1, $y1, $x2, $y2, $color_black); } $hour = $hour % 12; ImageLine($img, $radius, $radius, $xs, $ys, $color_gray); ImageLine($img, $radius, $radius-1, $xm, $ym, $color_blue); ImageLine($img, $radius-1, $radius, $xm, $ym, $color_blue); ImageLine($img, $radius, $radius-1, $xh, $yh, $color_blue); ImageLine($img, $radius-1, $radius, $xh, $yh, $color_blue); ImageArc($img, $radius, $radius, $radius / 8, $radius / 8, 0, 360, $color_red); ImageFillToBorder($img, $radius, $radius, $color_red, $color_red); ImagePNG($img); ImageDestroy($img); ?>
ma po przeksztalceniu wygladac tak: musi to byc tylko gorna polowka tarczy, ma byc widoczna 1 wskazowka, na tarczy maja byc napisane nastepujace wartosci: po lewej stronie 0 u gory 50 i po prawej 100, caly ten "licznik" ma byc podkreslony kreska (zeby to bylo zamkniete polkole) i ma wskazowka (ta ktora zostala) wywietlac zadana mu wartosc czyli np 50 i wowoczas strzalka bedzie skierowana w gore.
Udalo mi sie obciac tarcze i usunac 2 wskazowki i niestety na tym moja wiedza sie konczy

moj kod wyglada nastepujaco:
<?php if (! $size > 0) { $size = 300; } $img = ImageCreate($size, $size); $color_alpha = ImageColorAllocate($img, 254, 254, 254); $color_white = ImageColorAllocate($img, 255, 255, 255); $color_black = ImageColorAllocate($img, 0, 0, 0); $color_gray = ImageColorAllocate($img, 192, 192, 192); $color_red = ImageColorAllocate($img, 255, 0, 0); $color_blue = ImageColorAllocate($img, 0, 0, 255); ImageColorTransparent($img, $color_alpha); ImageArc($img,$radius, $radius, $size, $size, 180, 360, $color_black); ImageFill($img, $radius, $radius, $color_white); $min = 14; while($min++ < 45 ) { if ($min % 45 == 10) $len = $radius / 5; elseif ($min % 5 == 10) $len = $radius / 10; else $len = $radius / 30; $ang = (2 * M_PI * $min) / 60; $x1 = sin($ang) * ($radius - $len) + $radius; $y1 = cos($ang) * ($radius - $len) + $radius; $x2 = (1 + sin($ang)) * $radius; $y2 = (1 + cos($ang)) * $radius; ImageLine($img, $x1, $y1, $x2, $y2, $color_black); } ImageLine($img, $radius, $radius, $xm+100, $ym, $color_blue); ImageArc($img, $radius, $radius, $radius / 8, $radius / 8, 0, 360, $color_red); ImageFillToBorder($img, $radius, $radius, $color_red, $color_red); ImagePNG($img); ImageDestroy($img); ?>
Bardzo prosil bym o ewentualna pomoc w tym projekcie

Pozdrawiam