allOf
Skip the filter only while every rule holds, for a no-op that needs several props at rest.
allOf(...rules: IdentityRule[]): IdentityRule
Import allOf from shaders/std.
Parameters
| Name | Type | Notes |
|---|---|---|
...rules | IdentityRule[] | Optional. |
Example
identityWhen: allOf(isZero('brightness'), isZero('contrast'))
See also
isZero— Skip the filter entirely whilepropis exactly 0.isValue— Skip the filter entirely whilepropequalsvalue, for a filter whose no-op is not 0.