Work on distortions
This commit is contained in:
@@ -5,6 +5,6 @@ import Dodge.Data.Distortion
|
||||
|
||||
updateDistortion :: Distortion -> Maybe Distortion
|
||||
updateDistortion = \case
|
||||
RadialDistortion a b c d t
|
||||
| t > 0 -> Just $ RadialDistortion a b c d $ t-1
|
||||
RadialDistortion a b c d e f t
|
||||
| t > 0 -> Just $ RadialDistortion a b c d e f $ t-1
|
||||
| otherwise -> Nothing
|
||||
|
||||
Reference in New Issue
Block a user