[Cuis-dev] Strange Morph Behavior

Juan Vuletich juan at cuis.st
Wed Feb 21 10:37:31 PST 2024


Hi Jon,

Please draw the circle, the grid and the string in separate 
#fillColor:do: and #strokeColor:do: calls. The reason is that when doing 
fills, you need to be really careful about exactly closing shapes, so 
the odd/even fill algorithm works correctly.

Cheers,

On 2/21/2024 2:28 PM, Jon Hylands via Cuis-dev wrote:
> Hi everyone,
>
> I'm building a morph that draws a couple simple things. Right now it 
> draws a filled in circle, and some grid lines.
>
> if I comment out the grid line drawing, the filled circle code seems 
> to work. If I draw the grid lines (or even just draw the string) after 
> the filled circle, the fill goes away.
>
> The morph class I've created is a subclass of PlacedMorph.
>
> - Jon
>
>
> Screenshot 2024-02-21 122455.pngScreenshot 2024-02-21 122435.png


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240221/3b6d703f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 167353 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240221/3b6d703f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 164125 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240221/3b6d703f/attachment-0003.png>


More information about the Cuis-dev mailing list