A simple colours manipulation library in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
307 B

from colourpal import *
print("start", hsv(1, 0.6, 0.1).str())
print("end", hsv(50, 0.6, 0.1).str())
print("start", hsv(1, 0.6, 0.1).rgb().str())
print("end", hsv(50, 0.6, 0.1).rgb().str())
x = lerp_gradient(hsv(1,0.6,0.1), hsv(50, 0.6, 0.1), 10)
for i in x:
print(i.str(), i.hexstring(), i.str())