def getBeveledRectangle(bevel, bottomLeft):
 bottomRight = complex((- bottomLeft.real), bottomLeft.imag)
 rectangle = [bottomLeft, bottomRight, (- bottomLeft), (- bottomRight)]
 if (bevel <= 0.0):
  return rectangle
 beveledRectangle = []
 for (pointIndex, point) in enumerate(rectangle):
  begin = rectangle[(((pointIndex + len(rectangle)) - 1) % len(rectangle))]
  end = rectangle[((pointIndex + 1) % len(rectangle))]
  addAlongWay(point, bevel, begin, beveledRectangle)
  addAlongWay(point, bevel, end, beveledRectangle)
 return beveledRectangle

def getBeveledRectangle ( bevel , bottomLeft ) : bottomRight = complex ( ( - bottomLeft . real ) , bottomLeft . imag ) rectangle = [ bottomLeft , bottomRight , ( - bottomLeft ) , ( - bottomRight ) ] if ( bevel <= 0.0 ) : return rectangle beveledRectangle = [ ] for ( pointIndex , point ) in enumerate ( rectangle ) : begin = rectangle [ ( ( ( pointIndex + len ( rectangle ) ) - 1 ) % len ( rectangle ) ) ] end = rectangle [ ( ( pointIndex + 1 ) % len ( rectangle ) ) ] addAlongWay ( point , bevel , begin , beveledRectangle ) addAlongWay ( point , bevel , end , beveledRectangle ) return beveledRectangle
get the beveled rectangle .