- white = l / 444.0
- PDF_setfont(p, font, 0.5+white*7)
- PDF_setrgbcolor_fill(p, r/l, g/l, b/l)
- PDF_set_text_pos(p, x*3, y*3);
+ white = (l / 444.0)*5
+ PDF_setfont(p, font, 0.5+int(white)*4)
+ r = 0.3 + 0.3 * int((r/l)*3)
+ g = 0.3 + 0.3 * int((g/l)*3)
+ b = 0.3 + 0.3 * int((b/l)*3)
+ PDF_setrgbcolor_fill(p, r, g, b)
+ PDF_set_text_pos(p, x*6, y*6);