Jump to content

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

Edited by Barand
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.