Lines Matching refs:R
55 static PetscErrorCode PetscDrawCmap_Hue(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Hue() argument
65 R[i] = (unsigned char)(255 * PetscMin(r, 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
118 R[i] = (unsigned char)(255 * PetscMin(r, 1.0)); in PetscDrawCmap_Jet()
125 static PetscErrorCode PetscDrawCmap_Hot(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Hot() argument
154 R[i] = (unsigned char)(255 * PetscMin(r, 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()
169 double b = (7 * u + R[i] / 255.0) / 8; in PetscDrawCmap_Bone()
170 R[i] = (unsigned char)(255 * PetscMin(r, 1.0)); 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()
228 R[i] = rgb[i][0]; in PetscDrawUtilitySetCmap()
244 SWAP(R, i, j); in PetscDrawUtilitySetCmap()
256 PetscReal r = PetscPowReal((PetscReal)R[i] / 255, gamma); in PetscDrawUtilitySetCmap()
259 R[i] = (unsigned char)(255 * PetscMin(r, (PetscReal)1.0)); in PetscDrawUtilitySetCmap()