Lines Matching refs:G

55 static PetscErrorCode PetscDrawCmap_Hue(int mapsize, unsigned char R[], unsigned char G[], unsigned…  in PetscDrawCmap_Hue()  argument
66 G[i] = (unsigned char)(255 * PetscMin(g, 1.0)); 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
119 G[i] = (unsigned char)(255 * PetscMin(g, 1.0)); in PetscDrawCmap_Jet()
125 static PetscErrorCode PetscDrawCmap_Hot(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Hot() argument
155 G[i] = (unsigned char)(255 * PetscMin(g, 1.0)); 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()
168 double g = (7 * u + G[i] / 255.0) / 8; in PetscDrawCmap_Bone()
171 G[i] = (unsigned char)(255 * PetscMin(g, 1.0)); in PetscDrawCmap_Bone()
202 …etCmap(const char colormap[], int mapsize, unsigned char R[], unsigned char G[], unsigned char B[]) in PetscDrawUtilitySetCmap() argument
223 PetscCall(PetscDrawCmapTable[id].cmap(mapsize, R, G, B)); in PetscDrawUtilitySetCmap()
229 G[i] = rgb[i][1]; in PetscDrawUtilitySetCmap()
245 SWAP(G, i, j); in PetscDrawUtilitySetCmap()
257 PetscReal g = PetscPowReal((PetscReal)G[i] / 255, gamma); in PetscDrawUtilitySetCmap()
260 G[i] = (unsigned char)(255 * PetscMin(g, (PetscReal)1.0)); in PetscDrawUtilitySetCmap()