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_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   color() methods alpha is ignored
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: color() methods alpha is ignored  (Read 347 times)
mKoser

WWW Email
color() methods alpha is ignored
« on: Aug 22nd, 2003, 7:48pm »

re:
http://proce55ing.net/discourse/yabb/board_Proce55ing_Software__action_display_num_1061568757.html
 
as discovered/suggested by lrw, when defining a new color using Processing color() method, the alpha value is ignored when applying this color:
 
Code:

color c1;
 
void setup(){
  size(100, 100);
  c1 = color(255, 0, 0, 50);
  fill(c1);
  noStroke();
}
 
void draw(){
  rect(25, 25, 50, 50);
}

 
+ mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
arielm

WWW
Re: color() methods alpha is ignored
« Reply #1 on: Aug 23rd, 2003, 12:43am »

maybe it is due to some limitation in the current graphics engine?
 
but it seems as a logical & useful feature to have anyway so i'll fill this one in the bagel bug db...
 
btw, it should be nice to have, in addition of red(), green() and blue() something like alpha() that would retrieve the alpha component of a color.
 

Ariel Malka | www.chronotext.org
fry


WWW
Re: color() methods alpha is ignored
« Reply #2 on: Sep 21st, 2003, 7:55pm »

fixed for rev 0060.
 
Pages: 1 

« Previous topic | Next topic »