darkenBy method

Brush darkenBy([
  1. num? fraction,
  2. EnumValue? mode
])

Modifies all colors within this Brush, darkening them by some fraction. @param {number=} fraction Fraction to darken the colors by. Defaults to 0.2, must be between 0 and 1 (inclusive). @param {EnumValue=} mode Color space to use for adjusting. Must be Brush.Lab or Brush.HSL, defaults to Brush.Lab. @return {Brush} This Brush with modified color values. @since 1.7

Implementation

_i3.Brush darkenBy([
  _i2.num? fraction,
  _i3.EnumValue? mode,
]) =>
    _i4.callMethod(
      this,
      'darkenBy',
      [
        fraction ?? _i5.undefined,
        mode ?? _i5.undefined,
      ],
    );