Jump to content

PHP Image Alpha Transparency


davefootball123

Recommended Posts

Hi all I have a question. When ...for example...drawing a polygon on top of a white canvas in php and you fill the polygon with an alpha transparency of 150, and then draw another polygon over top of the first polygon with a different colour and an alpha transparency once again of 150...is it possible to have the colour of the first polygon show through the second for the areas where they overlap?

 

Thanks, Dave

Link to comment
https://forums.phpfreaks.com/topic/276584-php-image-alpha-transparency/
Share on other sites

transparency of 150 ???

 

 

alpha
A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.

 

I attach a php image generation script with overlapping transparent objects

bubble.php

post-3105-0-49051200-1365193809_thumb.png

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.