kopia lustrzana https://github.com/villares/sketch-a-day
				
				
				
			268 randint
							rodzic
							
								
									5cac0d55c0
								
							
						
					
					
						commit
						2b49623fff
					
				|  | @ -3,6 +3,7 @@ SKETCH_NAME = "s268"  # 20180923 | |||
| OUTPUT = ".png" | ||||
| 
 | ||||
| from random import choice | ||||
| from random import randint | ||||
| 
 | ||||
| gliphs = [ lambda x, y, s: rect(x, y, s, s), | ||||
|            lambda x, y, s: ellipse(x, y, s, s), | ||||
|  | @ -25,7 +26,7 @@ def ensamble(ex, ey, order): | |||
|         translate(ex, ey) | ||||
|         for _ in xrange(order):  | ||||
|             order, spacing, side = int(random(3, 12)), 12, 6 | ||||
|             x, y = int(random(-6, 6)) * side, int(random(-6, 6)) * side     | ||||
|             x, y = randint(-6, 5) * side, randint(-6, 5) * side    | ||||
|             grid(x, y, order, spacing, choice(gliphs), side) | ||||
| 
 | ||||
| def grid(x, y, order, spacing, function, *args): | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Alexandre B A Villares
						Alexandre B A Villares