padrag 
		
		YaBB Newbies
		Offline 
		
		
		Posts: 4
		
		
		
		
 
	
		
			
				random Color from palette th , 2008, 4:49am 
			
				
	  
		
		
			I've been playing with the bouncing bubbles example on processing, done a few diffeerent things successfully but now I am stuck. I want to make each ball to be assigned one of 3 colours randomly. I've tried to do this by making a palette of my 3 colours, then trying to add in a random(int) as a value of balls[i]. I was hoping that then each ball would have an int(index) attached to it to be read by fill(palette[index]); at the end.