Help with circle

32 views
Skip to first unread message

Carlo Valpiani

unread,
May 23, 2026, 4:16:50 AM (5 days ago) May 23
to [PiDP-1]
Hi,

Embarking on the learn how to program the -1 I thought I'd start with a small hack of the circle program. Using the algorithm at 


I modified the circle program in tapes to use DIV instead of SAR instructions and have been able to create horizontal and vertical ellipses. I haven't been to draw ellipses at 45 degree angles, the best I could do is in the picture. Does anybody know the initial values to plug in to draw the oblique ellipses or is it not possible with the -1 integer arithmetic?

Thanks
Carlo

Ellipses2.png

Bill E

unread,
May 23, 2026, 7:13:45 AM (4 days ago) May 23
to [PiDP-1]
I don't know any reason offhand why it wouldn't work, but if you share the code, I'll take a look.
Bill 

Norbert Landsteiner

unread,
May 24, 2026, 12:37:18 AM (4 days ago) May 24
to [PiDP-1]
The 45 degree rotation is a feature of the basic algorithm, actually a spatial "drift" or displacement in the approximation.
You can find a closer discussion of this at https://www.masswerk.at/nowgobang/2023/minskytron (unfinished draft). Mind the note in the blue box.

– Norbert

Carlo Valpiani

unread,
May 24, 2026, 9:07:27 PM (3 days ago) May 24
to [PiDP-1]
Thanks for all the suggestions.

I tried various combinations using Bill's ad1 but couldn't create a narrow ellipse at 45 degrees, as the ellipses narrow they tend to either horizontal or vertical. I think it is a limitation of the integer arithmetic.

Carlo

Reply all
Reply to author
Forward
0 new messages