import time[br]import math[br][br]#dibujamos una circunferencia en el fondo[br][br]P=Point(0,0,is_visible=False)[br]C=Circle(P,30)[br]C.color='black'[br]C.opacity=1[br]time.sleep(0.1)[br][br]#creamos una malla de puntos[br]#el color de los puntos dependerá de una condición[br]#dibujaremos puntos en circunferencias concéntricas[br][br]for i in range (-30,30):[br] for j in range (-25,25):[br] if math.sqrt((i/5)**2+(j/5)**2)<1:[br] P=Point(i/5,j/5)[br] P.color='white'[br] P.size=3[br] time.sleep(0.01)[br] elif math.sqrt((i/5)**2+(j/5)**2)>=1 and math.sqrt((i/5)**2+(j/5)**2)<2:[br] P=Point(i/5,j/5)[br] P.color='red'[br] P.size=3[br] time.sleep(0.1)[br] elif math.sqrt((i/5)**2+(j/5)**2)>=2 and math.sqrt((i/5)**2+(j/5)**2)<3:[br] P=Point(i/5,j/5)[br] P.color='yellow'[br] P.size=3[br] time.sleep(0.01) [br] elif math.sqrt((i/5)**2+(j/5)**2)>=3 and math.sqrt((i/5)**2+(j/5)**2)<4:[br] P=Point(i/5,j/5)[br] P.color='blue'[br] P.size=3[br] time.sleep(0.01)[br] elif math.sqrt((i/5)**2+(j/5)**2)>=4 and math.sqrt((i/5)**2+(j/5)**2)<5:[br] P=Point(i/5,j/5)[br] P.color='orange'[br] P.size=3[br] time.sleep(0.01)[br] else:[br] P=Point(i/5,j/5)[br] P.color='violet'[br] P.size=3[br] time.sleep(0.01)[br]