mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
generate 256 palette
This commit is contained in:
parent
c291194a4e
commit
cc0a4ba756
7 changed files with 202 additions and 2 deletions
13
lab.h
Normal file
13
lab.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct lab {
|
||||
float l;
|
||||
float a;
|
||||
float b;
|
||||
};
|
||||
|
||||
struct lab lab_from_rgb(uint32_t rgb);
|
||||
uint32_t lab_to_rgb(struct lab c);
|
||||
struct lab lab_lerp(float t, struct lab a, struct lab b);
|
||||
Loading…
Add table
Add a link
Reference in a new issue