Changeset 3288 for libcaca/trunk/caca-php/examples/www
- Timestamp:
- Nov 5, 2008, 12:56:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/www/export.php
r3282 r3288 22 22 23 23 $pixels = imagecreatetruecolor(256, 256); 24 imagealphablending($pixels, false); 25 imagesavealpha($pixels, true); 24 26 25 27 $exports = caca_get_export_list(); … … 126 128 $g = (255 - $y + $x) / 2; 127 129 $b = $y * (255 - $x) / 256; 128 imagesetpixel($pixels, $x, $y, imagecolorallocate ($pixels, $r, $g, $b));130 imagesetpixel($pixels, $x, $y, imagecolorallocatealpha($pixels, $r, $g, $b, 127)); 129 131 } 130 132 }
Note: See TracChangeset
for help on using the changeset viewer.