SlidingPoint.py

from pygeo import *

v=display(scale=70)

p1 = FreePoint(-33.,-33,-3,pointsize=1.5,color=WHITE)
p2 = FreePoint(43,33,14,pointsize=1.5,color=WHITE)
line=Line(p1,p2,color=BLUE,seg=True)

SlidingPoint(line,pointsize=1.5,color=RED,ratio=1/3.)
v.animate(povout=False)