Increasing blend level of a fld or grc thins lineWidth

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Increasing blend level of a fld or grc thins lineWidth

Post by dunbarx » Tue Feb 21, 2017 7:31 pm

The backStory is in the thread "Print to PDF not rendering properly" in the "Talking LiveCode" pane.

It might be useful to know that when printing to pdf with the native "print to pdf" command, the border of a field or graphic of lineWidth 1 can be set to a "fractional" value by increasing the blendLevel or by setting the saturation of the borderColor. There is the expected graying of the border, but more valuable, and more perceptible, is the thinning of that border. This is even more apparent with grc borders, which render much heavier than field borders in pdf.

It is an optical illusion, But one may fairly well render a lineWidth of 0.6, say. This is works only with line widths of 1; larger widths just gray, but do not seem to thin out.

Craig Newman

Post Reply

Return to “Talking LiveCode”