math on widths doesn't add up

Ralph DiMola rdimola at evergreeninfo.net
Fri Jun 14 20:30:36 EDT 2019


You don't need sub-pixels per say but you need to know they exist. I found
that out real quick when writing the color gradient math for CGI. If I did
not use center pixel coordinates the gradients were "jaggy" so to speak.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of hh via use-livecode
Sent: Friday, June 14, 2019 7:01 PM
To: use-livecode at lists.runrev.com
Cc: hh
Subject: Re: math on widths doesn't add up

@Dar.
Could we agree that in LC Script we cannot draw subpixels? (I would like
to...)

And yes, you are right with the invariance of width and height. The number
of pixels isn't dependent of how I enumerate them. Sorry.

> I don't understand why you say "pixel 1".

OK. I should say pixel 1 (one-based counting).
Zero-based counting certainly has also some advantages.


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list