You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							19 lines
						
					
					
						
							292 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							19 lines
						
					
					
						
							292 B
						
					
					
				| class Blip { | |
|   // color | |
|   color shade; | |
|   // vertical position on screen | |
|   float position; | |
|   // width | |
|   float size; | |
|    | |
|   Blip( color c, float p, float s ) { | |
|     shade = c; | |
|     position = p; | |
|     size = s; | |
|   } | |
|    | |
|   void draw() { | |
|     fill( shade ); | |
|     rect( width/2, position, size, 10 ); | |
|   } | |
| }
 |