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

NameTypeNotes
...rulesIdentityRule[]Optional.

Example

identityWhen: allOf(isZero('brightness'), isZero('contrast'))

See also

  • isZero — Skip the filter entirely while prop is exactly 0.
  • isValue — Skip the filter entirely while prop equals value, for a filter whose no-op is not 0.

Used by

BrightnessContrast