random colours 
	 
	
		| Author | 
		Message | 
	 
		 
		85882
 
 
 
    
		 | 
		
		
			
				  Posted: Fri Jun 13, 2003 9:29 am    Post subject: random colours  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				I make a quiz, and each question should have a different colour. But I want that it uses a random colour. Is that possible?
 
 
Thank You! | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	 
	 
		  | 
	 
				 
		Blade
 
 
 
    
		 | 
		
		
			
				  Posted: Fri Jun 13, 2003 9:46 am    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				yeah, colours can be called by random integers. so just stick a random integer in the colour spot:
 
ie: drawfillbox(100,100,200,200,Rand.Int(1,255)) | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		85882
 
 
 
    
		 | 
		
		
			
				  Posted: Fri Jun 13, 2003 10:07 am    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Thanks so much!    | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		Andy
 
 
 
    
		 | 
		
		
			
				  Posted: Fri Jun 13, 2003 10:36 am    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				| or better yet drawfill(maxx div 2, maxy div 2, Rand.Int(0,255),Rand.Int(0,255) | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		 | 
	 
 
	
	
	 
	
	 |