#include "vector.h"

#ifndef H_PPM

/* Size of picture */
#define WIDTH 320
#define HEIGHT 256

/* Number of intensities per color component (256 means 24-bit graphics) */
#define COLORS 256

/* Integer-valued color */
typedef unsigned char intcolorcomp;
struct intcolorstruct
{
   intcolorcomp r, g, b;
};
typedef struct intcolorstruct intcolor;

/* Real-valued color */
typedef vector color;

intcolor makecol(intcolorcomp r, intcolorcomp g, intcolorcomp b);
void zeromap(intcolor col, intcolor **map);
int writeppm(char *filename, intcolor **map);
void colorplot(color c, int x, int y, intcolor **map);

#define H_PPM
#endif

