(08-14-2022, 07:27 PM)james2464 Wrote: Using the suggestions from the replies, here is the latest version:
3 patterns from the Life wiki have been added
And...I added a line drawing option, but due to my low skill level it's kind of a problem. I tried using 'right click' to exit but I don't fully understand how to apply or capture a right mouse click to get out of a loop. So i changed it to use the ENTER key. Anyway I'd like to know how to just use the mouse and right click, if anyone can suggest a solution. Cheers.
Here is a quick demo for right mouse click:
Code: (Select All)
Do
Cls
While _MouseInput: Wend ' poll mouse get all updated except wheel from tiny loop
If _MouseButton(2) Then ' right clicked may want _delay or wait for mouse button release
Exit Do
Else
Cls
Print "Screen 0 mouse at:"; _MouseX; ","; _MouseY
End If
_Limit 60 ' keeps CPU cool
_Display ' stops flicher from cls
Loop
Print "Good bye!"
_MouseButton(2) just tells us that the Right mouse button is down when the poll took place.
PS Mouse coordinates in Screen 0 are in Char Cells same as use for Locate and Print. In graphics screen mouse coordinates are in pixels.
b = b + ...