Polygones réguliers #PyGGb

[b][size=150][url=https://geogebra.org/python/index.html?name=Polygones+r%C3%A9guliers&code=eJx1j8EKwjAMhu95ioiXVorb3E3YYXsCwaN4GFs3AltSakX29rYizsv%2BkMPPny8ke7yG1gd8eQrEIy7y9NhJb3dAs5OYBJotQG8HdDItXtWmMazPgFGDeCQkRt%2FyaFX5C5JcdYnAKPxByIhrOwpLRZkqD6xNJ5P46pYbyjj1Xa%2FoaYPNVyrWH5GuPD4ma50qNADUcQFxUHFKQ%2FM1RTIA6x9Frt%2Fi%2FkmN]Lien[/url][/size][/b]
[code]# Start writing your code![br]import time[br][br]def polyr(A,B,n):[br] for i in range(3,n):[br] p=Polygon(A,B,i,opacity=i/(3*n),color=[0,i/n,i/n])[br] p2=Polygon(A,B,i,opacity=0,color=[0,0,0])[br] time.sleep(1)[br][br][br]A=Point(0,0)[br]B=Point(1,0)[br][br][br]polyr(A,B,10)[/code]

Information: Polygones réguliers #PyGGb