| 
									
										
										
										
											2019-09-23 12:04:25 +00:00
										 |  |  | add_library('gifAnimation') | 
					
						
							|  |  |  | from gif_animation_helper import gif_export | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #つぶやきProcessing | 
					
						
							|  |  |  | w,h=500,250 | 
					
						
							|  |  |  | def setup():size(w,w);noFill()#;noStroke();fill(0,10) | 
					
						
							|  |  |  | def draw(): | 
					
						
							|  |  |  |  background(h,h/2,h/2);translate(h,h) | 
					
						
							|  |  |  |  a,k=0,sin(frameCount/30.) | 
					
						
							|  |  |  |  while a<TWO_PI: | 
					
						
							|  |  |  |   i,j=sin(a),cos(a) | 
					
						
							|  |  |  |   n=h*noise((abs(i)+i+j),(abs(j)+j+i),k) | 
					
						
							| 
									
										
										
										
											2019-09-24 03:29:45 +00:00
										 |  |  |   circle(n*i,n*j,n/2) | 
					
						
							| 
									
										
										
										
											2019-09-23 12:04:25 +00:00
										 |  |  |   a+=.004 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  if frameCount/30. < TWO_PI: | 
					
						
							| 
									
										
										
										
											2019-09-24 03:29:45 +00:00
										 |  |  |     gif_export(GifMaker, filename="a") | 
					
						
							| 
									
										
										
										
											2019-09-23 12:04:25 +00:00
										 |  |  |  else: | 
					
						
							|  |  |  |     gif_export(GifMaker, finish=True) |