7 lines
174 B
Python
7 lines
174 B
Python
import numpy as np
|
|
from matplotlib.colors import hsv_to_rgb
|
|
|
|
|
|
def k2c(K: np.ndarray):
|
|
return hsv_to_rgb(np.array([3.0 * K % 1, 0.4 + K * 0, 0.6 + 0.15 * K]).transpose())
|