Use a C++ implementation of hsluv

This commit is contained in:
miruka
2019-12-27 08:19:56 -04:00
parent 77f851c319
commit e7caa0b8ef
8 changed files with 22 additions and 16 deletions

View File

@@ -7,7 +7,6 @@ import traceback
from pathlib import Path
from typing import Any, DefaultDict, Dict, List, Optional, Tuple
import hsluv
from appdirs import AppDirs
import nio
@@ -245,13 +244,6 @@ class Backend:
# General functions
@staticmethod
def hsluv(hue: int, saturation: int, lightness: int) -> List[float]:
"""Convert HSLuv (0-360, 0-100, 0-100) to RGB (0-1, 0-1, 0-1) color."""
return hsluv.hsluv_to_rgb([hue, saturation, lightness])
async def load_settings(self) -> tuple:
"""Return parsed user config files."""