Initial commit

This commit is contained in:
Dimitri Lozeve 2023-03-16 22:11:38 +01:00
commit 4173ad64a1
4 changed files with 1095 additions and 0 deletions

12
colors.bqn Normal file
View file

@ -0,0 +1,12 @@
HSVtoRGB
# Convert colors from HSV to RGB.
# 𝕩 is a triple 0 ≤ h‿s‿v ≤ 360‿1‿1
# Output is a triple 0 ≤ r‿g‿b ≤ 1
HSVtoRGB{𝕊h,s,v:
cv×s
xc×1-|1-2|h÷60
mv-c
rgb(h÷60)cx0,xc0,0cx,0xc,x0c,c0x
m+rgb
}