Created
November 15, 2023 22:38
-
-
Save scztt/363a8a3354aa52410c6746ded0d4a1b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+Object { | |
|> { | |
|other| | |
^other.value(this) | |
} | |
+> { | |
|other, adverb| | |
^(this +.(adverb) other.value(this)) | |
} | |
*> { | |
|other, adverb| | |
^(this *.(adverb) other.value(this)) | |
} | |
++> { | |
|other, adverb| | |
^(this.asCollection ++.(adverb) other.value(this).asCollection) | |
} | |
||> { | |
|other| | |
^this.collect(_ |> other) | |
} | |
>|| { | |
|other| | |
^other.collect(this |> _) | |
} | |
expBlend { arg that, blendFrac = 0.5, min=1; | |
var offset = max(0, min - this); | |
^blendFrac.linexp(0, 1, this + offset, that + offset) - offset; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I started: