Lines Matching refs:bg
151 #define alpha_composite(composite, fg, alpha, bg) { \
153 (ush)(bg)*(ush)(255 - (ush)(alpha)) + (ush)128); \
249 } bg[] = {
268 static int num_bgpat = sizeof(bg) / sizeof(struct background_pattern);
470 "Usage: %s [-display xdpy] [-gamma exp] [-bgcolor bg | -bgpat pat]\n"
484 " bg \tdesired background color in 7-character hex RGB format\n"
1081 int invert_gradient2 = (bg[pat].type & 0x08);
1109 if ((bg[pat].type & 0x07) == 0) {
1110 uch r1_min = rgb[bg[pat].rgb1_min].r;
1111 uch g1_min = rgb[bg[pat].rgb1_min].g;
1112 uch b1_min = rgb[bg[pat].rgb1_min].b;
1113 uch r2_min = rgb[bg[pat].rgb2_min].r;
1114 uch g2_min = rgb[bg[pat].rgb2_min].g;
1115 uch b2_min = rgb[bg[pat].rgb2_min].b;
1116 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min;
1117 int g1_diff = rgb[bg[pat].rgb1_max].g - g1_min;
1118 int b1_diff = rgb[bg[pat].rgb1_max].b - b1_min;
1119 int r2_diff = rgb[bg[pat].rgb2_max].r - r2_min;
1120 int g2_diff = rgb[bg[pat].rgb2_max].g - g2_min;
1121 int b2_diff = rgb[bg[pat].rgb2_max].b - b2_min;
1146 (even_odd_horiz && (bg[pat].type & 0x10));
1178 } else if ((bg[pat].type & 0x07) == 1) {
1183 r1 = rgb[bg[pat].rgb1_max].r;
1184 g1 = rgb[bg[pat].rgb1_max].g;
1185 b1 = rgb[bg[pat].rgb1_max].b;
1186 r2 = rgb[bg[pat].rgb2_max].r;
1187 g2 = rgb[bg[pat].rgb2_max].g;
1188 b2 = rgb[bg[pat].rgb2_max].b;
1212 } else if ((bg[pat].type & 0x07) == 2) {
1234 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
1235 freq = MAX((double)bg[pat].bg_freq, 0.0);
1236 saturate = (double)bg[pat].bg_bsat * 0.1;
1237 rotate = (double)bg[pat].bg_brot * 0.1;
1865 int invert_gradient2 = (bg[pat].type & 0x08);
1878 if ((bg[pat].type & 0x07) == 0) {
1879 uch r1_min = rgb[bg[pat].rgb1_min].r;
1880 uch g1_min = rgb[bg[pat].rgb1_min].g;
1881 uch b1_min = rgb[bg[pat].rgb1_min].b;
1882 uch r2_min = rgb[bg[pat].rgb2_min].r;
1883 uch g2_min = rgb[bg[pat].rgb2_min].g;
1884 uch b2_min = rgb[bg[pat].rgb2_min].b;
1885 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min;
1886 int g1_diff = rgb[bg[pat].rgb1_max].g - g1_min;
1887 int b1_diff = rgb[bg[pat].rgb1_max].b - b1_min;
1888 int r2_diff = rgb[bg[pat].rgb2_max].r - r2_min;
1889 int g2_diff = rgb[bg[pat].rgb2_max].g - g2_min;
1890 int b2_diff = rgb[bg[pat].rgb2_max].b - b2_min;
1915 (even_odd_horiz && (bg[pat].type & 0x10));
1947 } else if ((bg[pat].type & 0x07) == 1) {
1952 r1 = rgb[bg[pat].rgb1_max].r;
1953 g1 = rgb[bg[pat].rgb1_max].g;
1954 b1 = rgb[bg[pat].rgb1_max].b;
1955 r2 = rgb[bg[pat].rgb2_max].r;
1956 g2 = rgb[bg[pat].rgb2_max].g;
1957 b2 = rgb[bg[pat].rgb2_max].b;
1981 } else if ((bg[pat].type & 0x07) == 2) {
1999 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
2000 freq = MAX((double)bg[pat].bg_freq, 0.0);
2001 saturate = (double)bg[pat].bg_bsat * 0.1;
2002 rotate = (double)bg[pat].bg_brot * 0.1;