GrafX2 2.9.3227
The ultimate 256-color painting program
colorred.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include "colorred.h"
+ Include dependency graph for colorred.c:

Functions

CT_TreeCT_new ()
 
void CT_set (CT_Tree *colorTree, byte Rmin, byte Gmin, byte Bmin, byte Rmax, byte Gmax, byte Bmax, byte index)
 insert a node in the color tree More...
 
byte CT_get (CT_Tree *tree, byte r, byte g, byte b)
 find the leaf that also contains (rgb) More...
 
void CT_delete (CT_Tree *tree)
 

Function Documentation

◆ CT_new()

CT_Tree * CT_new ( )

Referenced by Optimize_palette().

◆ CT_set()

void CT_set ( CT_Tree colorTree,
byte  Rmin,
byte  Gmin,
byte  Bmin,
byte  Rmax,
byte  Gmax,
byte  Bmax,
byte  index 
)

◆ CT_get()

byte CT_get ( CT_Tree tree,
byte  r,
byte  g,
byte  b 
)

◆ CT_delete()

void CT_delete ( CT_Tree tree)