Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DRAW sequence m option
#4
(11-14-2022, 08:47 AM)PhilOfPerth Wrote: Can someone please elaborate a bit on the m x,y (and its related +/- options)  in the draw command? It doesn't get a mention (that I can find) in the Help file, and the Wiki one is pretty unclear. How is it fitted into a draw string, and does it need parentheses, or commas etc?  Confused
You use "M" when the "turtle graphics" commands like "U", "R" and "H" aren't good enough and/or you're not interested in using "S" scale or "TA" change drawing angle which might generate more confusion. "M+2,+2" moves from the "current position" to the position two pixels across and two pixels down, toward your right-hand side of the screen and toward the bottom. It becomes the new current position. "M400,300", without any signs moves absolutely, in this case to the "middle" point of 800x600 screen. This could be combined with "B", in which case there is nothing drawn, or with "N", in which the "current position" is not changed after the "M" command is performed. For example, "M400,300 NM500,300 NM400,150" draws a horizontal line then an upper vertical line, while the "current position" remains the middle of your 800x600 screen.
Reply


Messages In This Thread
DRAW sequence m option - by PhilOfPerth - 11-14-2022, 08:47 AM
RE: DRAW sequence m option - by PhilOfPerth - 11-14-2022, 12:25 PM
RE: DRAW sequence m option - by Pete - 11-14-2022, 04:46 PM
RE: DRAW sequence m option - by mnrvovrfc - 11-14-2022, 05:08 PM
RE: DRAW sequence m option - by Dimster - 11-14-2022, 05:34 PM
RE: DRAW sequence m option - by Pete - 11-14-2022, 05:45 PM
RE: DRAW sequence m option - by Dimster - 11-14-2022, 05:47 PM
RE: DRAW sequence m option - by mnrvovrfc - 11-14-2022, 05:59 PM
RE: DRAW sequence m option - by Pete - 11-14-2022, 05:56 PM
RE: DRAW sequence m option - by Pete - 11-14-2022, 06:24 PM
RE: DRAW sequence m option - by CharlieJV - 11-14-2022, 06:49 PM
RE: DRAW sequence m option - by CharlieJV - 11-14-2022, 08:41 PM
RE: DRAW sequence m option - by Dimster - 11-14-2022, 08:16 PM
RE: DRAW sequence m option - by mnrvovrfc - 11-14-2022, 11:00 PM
RE: DRAW sequence m option - by PhilOfPerth - 11-14-2022, 10:45 PM
RE: DRAW sequence m option - by bplus - 11-14-2022, 10:49 PM
RE: DRAW sequence m option - by Pete - 11-14-2022, 10:54 PM
RE: DRAW sequence m option - by PhilOfPerth - 11-14-2022, 10:59 PM
RE: DRAW sequence m option - by Pete - 11-14-2022, 11:08 PM
RE: DRAW sequence m option - by PhilOfPerth - 11-15-2022, 01:27 AM
RE: DRAW sequence m option - by Pete - 11-15-2022, 03:25 AM
RE: DRAW sequence m option - by PhilOfPerth - 11-15-2022, 04:47 AM
RE: DRAW sequence m option - by Pete - 11-15-2022, 05:22 AM



Users browsing this thread: 7 Guest(s)