davefootball123 Posted April 5, 2013 Share Posted April 5, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/276584-php-image-alpha-transparency/ Share on other sites More sharing options...
Barand Posted April 5, 2013 Share Posted April 5, 2013 (edited) transparency of 150 ??? alphaA 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 Edited April 5, 2013 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/276584-php-image-alpha-transparency/#findComment-1423170 Share on other sites More sharing options...
davefootball123 Posted April 5, 2013 Author Share Posted April 5, 2013 Thanks Barand, was thinking RGB type transparency from photoshop lol Quote Link to comment https://forums.phpfreaks.com/topic/276584-php-image-alpha-transparency/#findComment-1423175 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.