Lines Matching refs:percent
21 def pointAtPercent((x1, y1), (x2, y2), percent):
22 percent /= 100.0
23 x = x1 + (percent * (x2 - x1))
24 y = y1 + (percent * (y2 - y1))
30 self.OptionParser.add_option("-p", "--percent",
32 dest="percent", default=10.0,
33 help="move curve handles PERCENT percent closer to a straight line")
49 params[:2] = pointAtPercent(params[:2],last[:],self.options.percent)
50 params[2:4] = pointAtPercent(params[2:4],params[-2:],self.options.percent)
55 params[:2] = pointAtPercent(params[:2],dest1[:],self.options.percent)
56 params[2:4] = pointAtPercent(params[2:4],dest2[:],self.options.percent)
59 params[:2] = pointAtPercent(params[:2],dest,self.options.percent)