Divide a rectangle into a number of unequal triangles: Difference between revisions

m
Line 14:
 
=={{header|Julia}}==
The `cutrectangle` method creates a new triangle by consuming a previously created triangle by cutting it at a location determined by the ratio of two sequential primes, making for guaranteed noncongruence of all triangles thus made. The Luxor code is for the demo. See also <link>https://lynxview.com/temp/luxor-drawing.png</link>
<lang julia>using Colors
using Luxor
4,103

edits