Aller au contenu principal

raygeo.sketch.constraints.drag

DragConstraint​

Softly pulls a point towards a target coordinate.

point​

point: int

The dragged point.

target_x​

target_x: float

Target X coordinate.

target_y​

target_y: float

Target Y coordinate.

weight​

weight: float

Pull strength.