Jump to content

Plot


sandy1028

Recommended Posts

Hi,

 

How to plot the values 0 50 and 100 on top of the rectangle and fill the color till the marking 50 in different color

 

 

<?php

$image = imagecreate( 30, 15 );

$text_color = ImageColorAllocate ($image, 233, 14, 91);

imageline ($image,$x1,$y1,$x2,$y2,$text_color);

imagepng($image);
imagedestroy($image);

?>

Link to comment
https://forums.phpfreaks.com/topic/61792-plot/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.