šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.apl
Article #1

drawing ellipses

#1
From: EllisMorgan
Date: Sat, 11 Jul 2026 14:39
17 lines
1899 bytes
This subject came up in a recent discussion so I am posting a copy of 
what was posted here on 2009. It helped me then, belayed thanks Joakim.
HOW_ELLIPSE;ellipse
ā this is the original function from Joakim (published in CLA in 2009)
  ellipse←{
      pos rot start end scale nsegsā†āµ
      theta←start+0,+\nsegsā“(start-end)Ć·nsegs
      sin←1āˆ˜ā—‹
      cos←2āˆ˜ā—‹
      x←cos theta
      y←sin theta
      rotmat←{2 2ā“(cos āµ)(-sin āµ)(sin āµ)(cos āµ)}rot
      scalemat←2 2ā“(1⊃scale)0 0(2⊃scale)
      xform←0 0 1,[1]āØ(rotmat+.Ɨscalemat),pos
      v←xform+.Ɨ1,[1]āØx,[0.5]y
      ā‰ĀÆ1 0↓v
  }
Technical Details
Message-ID: <112tkia$24884$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: EllisMorgan <ellis@ellis.invalid>
Newsgroups: comp.lang.apl
Subject: drawing ellipses
Date: Sat, 11 Jul 2026 15:39:06 +0100
Organization: home
Lines: 17
Message-ID: <112tkia$24884$1@dont-email.me>
Reply-To: news@ellismorgan.co.uk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 11 Jul 2026 14:39:07 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2236676"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19fOZxfzG07JDeTXonokR1gExdGI/cmfzI="; posting-host="cb8ffdddcf37254a345f49daf20aea79"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:s1EidyDCTzQl6BpTI5b+WBCRyGA= sha256:Pwg+i9SFLdzRQ8zLlQrHKN1OCo3T6kdICAvxe1l1NTo=
	sha1:dSt6pAKiH+jEAqZaCWfqOE0dMRo= sha256:IqSu+xTxZIVk/pIq7Gl/JWJDWUDnZIkn+oFoNxCDR4A=
X-Antivirus: Norton (VPS 260710-2, 10/7/2026), Outbound message
X-Antivirus-Status: Clean
Content-Language: en-GB