generate 256 palette

This commit is contained in:
Jake Stewart 2026-02-19 19:27:51 +08:00
parent c291194a4e
commit cc0a4ba756
7 changed files with 202 additions and 2 deletions

13
lab.h Normal file
View 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);