Changeset 3305 for libcaca


Ignore:
Timestamp:
Nov 7, 2008, 6:51:26 AM (11 years ago)
Author:
bsittler
Message:

remove workarounds since alpha works now (merged from ..)

File:
1 edited

Legend:

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

    r3288 r3305  
    2222
    2323$pixels = imagecreatetruecolor(256, 256);
    24 imagealphablending($pixels, false);
    25 imagesavealpha($pixels, true);
    2624
    2725$exports = caca_get_export_list();
     
    128126                        $g = (255 - $y + $x) / 2;
    129127                        $b = $y * (255 - $x) / 256;
    130                         imagesetpixel($pixels, $x, $y, imagecolorallocatealpha($pixels, $r, $g, $b, 127));
     128                        imagesetpixel($pixels, $x, $y, imagecolorallocate($pixels, $r, $g, $b));
    131129                }
    132130        }
Note: See TracChangeset for help on using the changeset viewer.