<div dir="ltr"><div>Hi Hilaire,</div><div><br></div><div>in Cuis, Submorph clipping only happens for one submorph, and only if aMorph>>#clippedSubmorph is true (and that clips to the parent morph, so, if your wheel morphs are submorphs of your overall frame, then incorrect clipping for the clipped submorph).</div><div><br></div><div>In a case like yours, you will probably need to add a morph that do nothing but clipping, to ensure that the morph you are drawing in has the exact same bounds as its parents.</div><div><br></div><div>The code in charge of that is MorphicCanvas>>#fullDraw:</div><div>The code selecting the clipped submorph is Morph>>#clippedMorph. By default, it is the last one.</div><div><br></div><div>Thierry<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 29 avr. 2020 à 23:51, Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><font size="+1">Hi, <br>
</font></p>
<p><font size="+1">When drawing in the canvas (a kind of paste up
morph), from the drawOn: method, I have drawings not clipped. <br>
</font></p>
<p><font size="+1">See bellow drawings in the title and the bottom
of the window. What is the proper way to clip the drawings to
the bounds of the canvas?</font></p>
<p><font size="+1">Thanks</font></p>
<p><font size="+1">Hilaire<br>
</font></p>
<img src="cid:171ca274d6ad68669f11" alt="" width="600" height="333">
<pre cols="72">--
GNU Dr. Geo
<a href="http://drgeo.eu" target="_blank">http://drgeo.eu</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div>