69
69
void BKE_image_buf_fill_checker(unsigned char *rect, float *rect_float, int width, int height)
71
71
/* these two passes could be combined into one, but it's more readable and
74
74
int checkerwidth= 32, dark= 1;
77
77
unsigned char *rect_orig= rect;
78
78
float *rect_float_orig= rect_float;
81
81
float h=0.0, hoffs=0.0, hue=0.0, s=0.9, v=0.9, r, g, b;
85
85
dark= powf(-1.0f, floorf(y / checkerwidth));
88
88
if (x % checkerwidth == 0) dark= -dark;
92
92
rect_float[0]= rect_float[1]= rect_float[2]= 0.25f;
95
96
rect_float[0]= rect_float[1]= rect_float[2]= 0.58f;