alpha bug?
              in 
             Programming Questions 
              •  
              1 year ago    
            
 
           
             Is there a problem with alpha? in stroke(r,g,b,alpha)?
            
            
             Try this code. Do you get 2 lines of the same length? or not?
            
            
             line() is working fine here, but there is a problem with point()
            
            - void setup() {
 size(500, 500);
 background(25);
 //
 stroke(225, 240, 255);
 for (int i=0; i<400; i++) {
 point(i, 20);
 }
 line(0,22, 399,22);
 //
 stroke(225, 240, 255, 75);
 for (int i=0; i<400; i++) {
 point(i, 40);
 }
 line(0,42, 399,42);
 }
 
              
              1  
            
 
            
 
 
           
 
            