[Cuis-dev] Understanding Arc

Juan Vuletich juan at jvuletich.org
Thu May 6 07:58:58 PDT 2021


On 5/5/2021 11:54 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> The rendering quality is great. So far, the geometric objects, adjust 
> perfectly.
>
> For example, point perfectly on the middle of the line:
>
> arc
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu

Nice! Note that if you move your point by as little as one tenth of a 
pixel (float coordinates), there will be a visual effect of 0.1 pixels, 
and both will still match correctly.

0.1 pixel is hard to see for me, but this script shows that 1/4 of a 
pixel is pefectly visible (at least on my display and with my eyes):

(VectorEngineSubPixel onForm: Display)
     strokeWidth: 1.0 color: Color white do: [ :engine |
         engine
             basicMoveToX: 100 y: 100;
             basicLineToX: 100 y: 150;
             basicMoveToX: 100.25 y: 150;
             basicLineToX: 100.25 y: 200;
             basicMoveToX: 100 y: 200;
             basicLineToX: 100 y: 250
             ].
Display forceToScreen


Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210506/1b342fac/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 6571 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210506/1b342fac/attachment.png>


More information about the Cuis-dev mailing list