Changeset 3287 for libcaca/trunk/caca-php/examples
- Timestamp:
- Nov 5, 2008, 12:54:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/export.php
r3260 r3287 27 27 28 28 $pixels = imagecreatetruecolor(256, 256); 29 imagealphablending($pixels, false); 30 imagesavealpha($pixels, true); 29 31 30 32 $exports = caca_get_export_list(); … … 79 81 $g = (255 - $y + $x) / 2; 80 82 $b = $y * (255 - $x) / 256; 81 imagesetpixel($pixels, $x, $y, imagecolorallocate ($pixels, $r, $g, $b));83 imagesetpixel($pixels, $x, $y, imagecolorallocatealpha($pixels, $r, $g, $b, 127)); 82 84 } 83 85 }
Note: See TracChangeset
for help on using the changeset viewer.