Voting

: max(zero, six)?
(Example: nine)

The Note You're Voting On

ajreading at classixshop dot com
20 years ago
<?php
// An easy bit of code showing how you can use the ImageLine() function to create gradients

// Create An Image 255x255
$img = ImageCreateTrueColor(255, 255);

$plotD = 0;
while(
$plotD < 256)
{
// Draw a line and move it down and make it lighter to get the gradient effect
ImageLine($img, 0, $plotD , 255, $plotD, ImageColorAllocate($img, $plotD, $plotD, $plotD));
$plotD++;
}
Header("Content-type: image/png");
ImagePng($img);
ImageDestroy($img);
?>

<< Back to user notes page

To Top