Changeset 5703
- Timestamp:
- Dec 5, 2005, 4:02:23 PM (21 years ago)
- Location:
- trunk/Ohana/src/kapa
- Files:
-
- 1 added
- 2 edited
-
Makefile (modified) (1 diff)
-
graph/PPMit2.c (added)
-
setup/MakeColormap.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa/Makefile
r5612 r5703 52 52 $(GDIR)/LoadPtext.$(ARCH).o $(GDIR)/DrawPtext.$(ARCH).o \ 53 53 $(GDIR)/PSLabels.$(ARCH).o $(GDIR)/PSPtext.$(ARCH).o \ 54 $(GDIR)/PNGit.$(ARCH).o $(GDIR)/PPMit .$(ARCH).o \54 $(GDIR)/PNGit.$(ARCH).o $(GDIR)/PPMit2.$(ARCH).o \ 55 55 $(GDIR)/DrawRotString.$(ARCH).o $(GDIR)/RotFont.$(ARCH).o \ 56 56 $(GDIR)/PSRotFont.$(ARCH).o -
trunk/Ohana/src/kapa/setup/MakeColormap.c
r5611 r5703 63 63 } 64 64 65 # if (0) 66 int *MakePPMPalette (int *Npalette, int color) { 67 68 int i, *palette; 69 float red, green, blue; 70 71 ALLOCATE (palette, int, NGRAPHCOLORS); 72 73 /* define the palette */ 74 for (i = 0; i < NGRAPHCOLORS; i++) { 75 sscanf (GRAPHCOLORS[i][2], "%f %f %f", &red, &green, &blue); 76 switch (color) { 77 case 0: 78 palette[i] = (0xff * red); 79 break; 80 case 1: 81 palette[i] = (0xff * green); 82 break; 83 case 2: 84 palette[i] = (0xff * blue); 85 break; 86 default: 87 break; 88 } 89 *Npalette = NGRAPHCOLORS; 90 return (palette); 91 } 92 # endif 93 65 94 void MakeColormap (int argc, char **argv) { 66 95
Note:
See TracChangeset
for help on using the changeset viewer.
