FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   transparency to color
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: transparency to color  (Read 324 times)
lrw
Guest
Email
transparency to color
« on: Aug 22nd, 2003, 6:12pm »

i think it would be a valuable resource to be able to code the color  to be transparent as a way to add depth to visualizations.... just a thought.
 
mKoser

WWW Email
Re: transparency to color
« Reply #1 on: Aug 22nd, 2003, 7:29pm »

that seems to be a bug!
 
i've posted this in the bug-section:
http://proce55ing.net/discourse/yabb/board_Proce55ing_software__bugs_action_display_num_1061574486.html
 
for now, if you want to use alpha-colors, you can hardcode the colors like this:
 
Code:

noStroke();
fill(255, 102, 0, 100);  
rect(30, 20, 35, 35);  
fill(0, 102, 255, 100);  
rect(50, 40, 35, 35);

 
with the 4th value being the alpha value (0-255)
 
+ mikkel
« Last Edit: Aug 22nd, 2003, 7:50pm by mKoser »  

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
lrw
Guest
Email
Re: transparency to color
« Reply #2 on: Aug 23rd, 2003, 7:04am »

thank you for your detailed response, much appreciated, and very helpful
 
Pages: 1 

« Previous topic | Next topic »