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