<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 11/3/2022 2:43 PM, Mariano Montone via Cuis-dev wrote:
<blockquote
cite="mid:819cf8b7-a20e-5c5e-335a-50fd7cff715c@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi,</p>
<p>I attach a Pythagoras tree Morph.</p>
<br>
<p><br>
</p>
<p>Try with:</p>
<p>PythagorasTreeMorph new<br>
withMultipleColors;<br>
openInWorld.</p>
<p>Scroll up/down to change angle.<br>
Scroll up/down + Ctrl to change depth (you may need Preferences
at: #ctrlArrowsScrollHorizontally put: true for this).</p>
<p>(note: scroll + ctrl events are not working for me on Linux, or
I've implemented it wrong.)</p>
<p>Feel free to include as one of VectorGraphics example morphs in
case you like it.</p>
<p>Cheers!</p>
<p><br>
</p>
<p> Mariano<br>
</p>
</blockquote>
<br>
Hi Mariano,<br>
<br>
I love it!<br>
<br>
Attached is a version with the following changes:<br>
- Renamed it Sample10PythagorasTree and moved it to the Morphic -
Examples category<br>
- Limited the depth to 15. At some point, drawing becomes slow.<br>
- Used a different palette for colors.<br>
- Made it multicolor by default (for instance, if you create it from
the New Morph menu)<br>
- Left a hollow triangle, just like (for instance) the Wikipedia
page.<br>
- Removed redundant #requiresVectorCanvas.<br>
<br>
(BTW, kept all the code with your author initials). <br>
<br>
If you agree with these changes, I can just push it to GitHub. Or
you send a revised version.<br>
<br>
Thanks!<br>
<pre class="moz-signature" cols="72">--
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</pre>
</body>
</html>