/py-color-lerp

Interpolate between two colors in Python

Primary LanguagePython

Python Color Lerp

Interpolate between two colors in Python

Example Usage

from colour import Color

from py_color_lerp import ColorLerp

color = ColorLerp(Color("red"), Color("blue"))
    
# returns hexadecimal color purple as string: "#7f007f"
purple_hex = color.lerp_to_hex_color(0.5)

Dev Commands

  1. poetry install :: install dependencies
  2. poetry run pytest :: execute unit tests