Feb 2, 2025 Replies: 10 Sure you will figure it out. Four rotating/pivoting arms of different length and rotating at different speeds (some CW and some CCW) to make all kinds of interesting drawings. Change the speed / direction and length of the arms in the code. The path being traced is that of the tip of the last arm. Attachments b4jMathArt.zip b4jMathArt.zip 2.9 KB · Views: 470 Click to expand...
Sure you will figure it out. Four rotating/pivoting arms of different length and rotating at different speeds (some CW and some CCW) to make all kinds of interesting drawings. Change the speed / direction and length of the arms in the code. The path being traced is that of the tip of the last arm.
BlueVision Well-Known Member Licensed User Longtime User Feb 2, 2025 #2 Pretty! And there you have me again Johan. My first attempts with my ATARI130XE in graphics mode 8 looked something like this. I spent a day programming the formula and then a precise geometric marvel appeared on the screen. You could watch open-mouthed in amazement as the graphics were painted, the BASIC interpreter built into the MOS 6502 was quite busy.
Pretty! And there you have me again Johan. My first attempts with my ATARI130XE in graphics mode 8 looked something like this. I spent a day programming the formula and then a precise geometric marvel appeared on the screen. You could watch open-mouthed in amazement as the graphics were painted, the BASIC interpreter built into the MOS 6502 was quite busy.
E emexes Expert Licensed User Longtime User Feb 2, 2025 #3 Lol I was wondering what the heck you were up to. Closest I got was that you were investigating collisions between flying objects. Instead you took me back to 1975 summer holiday at Merricks Beach where we spent an inordinate amount of time doing Spirgraphs. Good job, and thank you.
Lol I was wondering what the heck you were up to. Closest I got was that you were investigating collisions between flying objects. Instead you took me back to 1975 summer holiday at Merricks Beach where we spent an inordinate amount of time doing Spirgraphs. Good job, and thank you.
Johan Schoeman Expert Licensed User Longtime User Feb 7, 2025 #4 An update so that you can change values in the UI....sure you will figure it out. Change the values in the boxes and click on DRAW. It is drawing the arms on one canvas and the trace on a 2nd canvas. Busy drawing.... Drawing completed Some other samples: Attachments b4jMathArt.zip b4jMathArt.zip 5.4 KB · Views: 284
An update so that you can change values in the UI....sure you will figure it out. Change the values in the boxes and click on DRAW. It is drawing the arms on one canvas and the trace on a 2nd canvas. Busy drawing.... Drawing completed Some other samples:
Johan Schoeman Expert Licensed User Longtime User Feb 8, 2025 #8 Two changes: 1. Have done away with the List that held the coordinates as the drawing is done on 2 Canvases - one for the movement of the arms and the other for the trace of the end of Arm #4 (the Blue trace in the image below). Therefore don't need to keep tack of the coordinates in a list but only need to track previous and current position. 2. Have added some equally spaced dust (Alpha of White) that is caused by the movement of Arm #4 - sure you will figure out how the dust is generated (set the TimerInterval on the UI (last entry box from the top) to 200 and see how Arm #4 strewn the trailing dust). Attachments b4jMathArt.zip b4jMathArt.zip 5.5 KB · Views: 295
Two changes: 1. Have done away with the List that held the coordinates as the drawing is done on 2 Canvases - one for the movement of the arms and the other for the trace of the end of Arm #4 (the Blue trace in the image below). Therefore don't need to keep tack of the coordinates in a list but only need to track previous and current position. 2. Have added some equally spaced dust (Alpha of White) that is caused by the movement of Arm #4 - sure you will figure out how the dust is generated (set the TimerInterval on the UI (last entry box from the top) to 200 and see how Arm #4 strewn the trailing dust).
P PaulMeuris Well-Known Member Licensed User Feb 8, 2025 #10 Sorry, Johan i couldn't resist adding some colors... see the attachment... Attachments b4jMathArt_paul.zip b4jMathArt_paul.zip 5.8 KB · Views: 295
Johan Schoeman Expert Licensed User Longtime User Feb 8, 2025 #11 PaulMeuris said: View attachment 161545 Sorry, Johan i couldn't resist adding some colors... see the attachment... Click to expand... That was the whole idea - post what you have added/modified and the new drawing. Well done. Like your mod.
PaulMeuris said: View attachment 161545 Sorry, Johan i couldn't resist adding some colors... see the attachment... Click to expand... That was the whole idea - post what you have added/modified and the new drawing. Well done. Like your mod.