Skip to content

Commit

Permalink
schematic: fix color mod_sat
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Feb 16, 2024
1 parent 6d1b184 commit 6e522e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quimb/schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,8 +1190,8 @@ def mod_sat(c, mod=None, alpha=None):
if mod is None:
return r, g, b, alpha

h, s, v = mpl.rgb_to_hsv((r, g, b))
return (*mpl.hsv_to_rgb((h, mod * s, v)), alpha)
h, s, v = mpl.colors.rgb_to_hsv((r, g, b))
return (*mpl.colors.hsv_to_rgb((h, mod * s, v)), alpha)


def auto_colors(nc, alpha=None, default_sequence=False):
Expand Down

0 comments on commit 6e522e6

Please sign in to comment.