#include "colors.h"
#include "hsv.h"
-#if HAVE_STDINT_H
-# include <stdint.h>
-#else
-typedef unsigned long uint32_t;
-#endif
-
#define ANTIALIAS 1
#define BLACK 0
#define WHITE 1
#define max(a,b) ((a)>(b)?(a):(b))
/* better if signed */
-typedef uint32_t pixel_t;
+typedef unsigned long pixel_t;
typedef struct {
switch(depth) {
case 32:
case 24:
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
/* This program idiotically does not go through a color map, so
we have to hardcode in knowledge of how jwxyz.a packs pixels!
Fix it to go through st->colors[st->ncolors] instead!
switch(depth) {
case 32:
case 24:
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
/* This program idiotically does not go through a color map, so
we have to hardcode in knowledge of how jwxyz.a packs pixels!
Fix it to go through st->colors[st->ncolors] instead!
void print_color ( struct state* st, pixel_t color ) {
- int r, g, b;
+ int r=0, g=0, b=0;
point2rgb(st->depth, color, &r, &g, &b);
printf( "%d %d %d\n", r, g, b);
}
}
static pixel_t next_color ( struct state* st, pixel_t current ) {
- int r, g, b;
+ int r=0, g=0, b=0;
point2rgb(st->depth, current, &r, &g, &b);
r += random() % 5 - 2;