Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created June 12, 2021 19:45
Show Gist options
  • Save PatrickKalkman/cbe0f5965185f58acf74c7b2957b23e7 to your computer and use it in GitHub Desktop.
Save PatrickKalkman/cbe0f5965185f58acf74c7b2957b23e7 to your computer and use it in GitHub Desktop.
creating the control points of the bezier curves
class ControlPointCollectionFactory():
@staticmethod
def create_collection1():
control_point_quartet_collection = ControlPointQuartetCollection()
control_point_quartet_collection.add(ControlPointQuartet(
513, -15,
700, 151,
888, 650,
501, 648))
control_point_quartet_collection.add(ControlPointQuartet(
501, 648,
114, 646,
208, 488,
235, 343))
control_point_quartet_collection.add(ControlPointQuartet(
235, 343,
262, 198,
326, -181,
513, -15))
return control_point_quartet_collection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment