We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2bbd84 commit 311e90dCopy full SHA for 311e90d
torqueo/transforms.py
@@ -580,12 +580,11 @@ class Pinch(WarpTransform):
580
Parameters
581
----------
582
strength : float
583
- The strength of the pinch distortion effect. Must be between 0.0 and 1.0.
+ The strength of the pinch distortion effect.
584
"""
585
586
def __init__(self, strength=0.5):
587
super().__init__()
588
- assert 0.0 <= abs(strength) <= 1.0
589
self.strength = strength
590
591
def generate_warp_field(self, height, width):
@@ -635,7 +634,7 @@ class Punch(Pinch):
635
634
636
637
638
- The strength of the punch distortion effect. Must be between 0.0 and 1.0.
+ The strength of the punch distortion effect.
639
640
641
0 commit comments