Lines Matching refs:mapsize
55 static PetscErrorCode PetscDrawCmap_Hue(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Hue() argument
61 for (i = 0; i < mapsize; i++) { in PetscDrawCmap_Hue()
62 double hue = maxhue * (double)i / (mapsize - 1), r, g, b; in PetscDrawCmap_Hue()
72 static PetscErrorCode PetscDrawCmap_Gray(int mapsize, unsigned char R[], unsigned char G[], unsigne… in PetscDrawCmap_Gray() argument
75 …for (int i = 0; i < mapsize; i++) R[i] = G[i] = B[i] = (unsigned char)((255.0 * i) / (mapsize - 1)… in PetscDrawCmap_Gray()
79 static PetscErrorCode PetscDrawCmap_Jet(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Jet() argument
85 for (i = 0; i < mapsize; i++) { in PetscDrawCmap_Jet()
86 double u = (double)i / (mapsize - 1); in PetscDrawCmap_Jet()
125 static PetscErrorCode PetscDrawCmap_Hot(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Hot() argument
131 for (i = 0; i < mapsize; i++) { in PetscDrawCmap_Hot()
132 double u = (double)i / (mapsize - 1); in PetscDrawCmap_Hot()
161 static PetscErrorCode PetscDrawCmap_Bone(int mapsize, unsigned char R[], unsigned char G[], unsigne… in PetscDrawCmap_Bone() argument
164 (void)PetscDrawCmap_Hot(mapsize, R, G, B); in PetscDrawCmap_Bone()
165 for (int i = 0; i < mapsize; i++) { in PetscDrawCmap_Bone()
166 double u = (double)i / (mapsize - 1); in PetscDrawCmap_Bone()
202 PetscErrorCode PetscDrawUtilitySetCmap(const char colormap[], int mapsize, unsigned char R[], unsig… in PetscDrawUtilitySetCmap() argument
223 PetscCall(PetscDrawCmapTable[id].cmap(mapsize, R, G, B)); in PetscDrawUtilitySetCmap()
226 …eck(mapsize == 256 - PETSC_DRAW_BASIC_COLORS, PETSC_COMM_SELF, PETSC_ERR_SUP, "Colormap '%s' with … in PetscDrawUtilitySetCmap()
227 for (i = 0; i < mapsize; i++) { in PetscDrawUtilitySetCmap()
236 j = mapsize - 1; in PetscDrawUtilitySetCmap()
255 for (i = 0; i < mapsize; i++) { in PetscDrawUtilitySetCmap()