Harmonic.py
from pygeo import *
v=display(scale=70)
p1 = FreePoint(-33.,-33,-3,pointsize=1.5,color=BLUE)
p2 = FreePoint(-23,33,4,pointsize=1.5,color=BLUE)
line1=Line(p1,p2,color=WHITE)
d1=Slider(line1,ratio=1.2,color=BLUE,pointsize=1.5)
Harmonic(d1,p1,p2,pointsize=1.5,color=RED)
#synthetic constuction of harmonic
p1a= FreePoint(-3.,-3,0,color=WHITE)
line3=Line(d1,p1a,color=WHITE)
s2=Slider(line3,color=WHITE)
line4=Line(p2,s2,color=WHITE)
line5=Line(p1,p1a,color=WHITE)
line6=Line(p2,p1a,color=WHITE)
line7=Line(p1,s2,color=WHITE)
v1=Intersect(line4,line5,color=WHITE)
v2=Intersect(line6,line7,color=WHITE)
Line(v1,v2,color=RED)
v.pickloop()