From 44f637979c79a69fe71e708b5f654d276c066893 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 04 Mar 2013 04:30:31 -0500 Subject: Make palette cycling a real part of the engine. --- (limited to 'src/palettes.h') diff --git a/src/palettes.h b/src/palettes.h new file mode 100644 index 0000000..c5f007a --- /dev/null +++ b/src/palettes.h @@ -0,0 +1,13 @@ +#ifndef PALETTES_H +#define PALETTES_H + +#include + +SDL_Palette *cycle_palettes_cosine(Uint32 t, Uint32 t_max, + SDL_Palette *pal_start, SDL_Palette *pal_end, + SDL_Palette *pal_step); +SDL_Palette *cycle_palettes_linear(Uint32 t, Uint32 t_max, + SDL_Palette *pal_start, SDL_Palette *pal_end, + SDL_Palette *pal_step); + +#endif -- cgit v0.9.1