Methods

complementary(color, fmt='hex')

Return complementary of [R, G, B] or hex color.

Parameters

fmt (string) – Output format: ‘hex’ or ‘rgb’.

delta(color, factor, fmt='hex')

Darker or lighten the input color by a percentage of <factor> ([-1, 1]) of the color spectrum (0-255).

Parameters
  • fmt (string) – Output format: ‘hex’ or ‘rgb’.

  • factor (float) – [-1, 1] Measure in which the color will be modified.