Ignore:
Timestamp:
11/07/08 00:25:26 (5 years ago)
Author:
bsittler
Message:

no more horrible hacks needed, since fixing the alpha mismatch in the C binding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/export.php

    r3287 r3302  
    2727 
    2828$pixels = imagecreatetruecolor(256, 256); 
    29 imagealphablending($pixels, false); 
    30 imagesavealpha($pixels, true); 
    3129 
    3230$exports = caca_get_export_list(); 
     
    8179                        $g = (255 - $y + $x) / 2; 
    8280                        $b = $y * (255 - $x) / 256; 
    83                         imagesetpixel($pixels, $x, $y, imagecolorallocatealpha($pixels, $r, $g, $b, 127)); 
     81                        imagesetpixel($pixels, $x, $y, imagecolorallocate($pixels, $r, $g, $b)); 
    8482                } 
    8583        } 
Note: See TracChangeset for help on using the changeset viewer.