Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_Putimage Question.
#11
STEP is the simplest command in the world.   It's just that number of pixels in X/Y change.

(100,100)- STEP (10,10)

This would start at pixel (100,100) and end up 10 pixels right, 10 pixels down.
It's the equivalent of (100,100)-(110,110)

All STEP does is add the value inside the step to the last plotted point used.

Code: (Select All)
Screen _NewImage(800, 600, 32)

PSet (100, 100)
Line -Step(100, 100), , BF

Easiest example in the world.   Start with changing the PSET a few times to experiment.  See where you use it (in this case) to set the graphic pointer somewhere on the screen?

Then the line command here will draw you a box 100 pixels right and 100 pixels down from that point you PSET.   Change those values to change the size of that box.

That's all that STEP is.   Step(yourX, yourY) is just (previousX + yourX, previousY +yourY)
Reply


Messages In This Thread
_Putimage Question. - by Pete - 01-04-2026, 04:33 PM
RE: _Putimage Question. - by bplus - 01-04-2026, 04:46 PM
RE: _Putimage Question. - by Pete - 01-04-2026, 04:56 PM
RE: _Putimage Question. - by bplus - 01-04-2026, 05:06 PM
RE: _Putimage Question. - by bplus - 01-04-2026, 05:16 PM
RE: _Putimage Question. - by Pete - 01-04-2026, 06:07 PM
RE: _Putimage Question. - by bplus - 01-04-2026, 07:19 PM
RE: _Putimage Question. - by SMcNeill - 01-04-2026, 06:52 PM
RE: _Putimage Question. - by bplus - 01-04-2026, 07:36 PM
RE: _Putimage Question. - by Pete - 01-04-2026, 09:09 PM
RE: _Putimage Question. - by SMcNeill - 01-04-2026, 09:21 PM
RE: _Putimage Question. - by Pete - 01-04-2026, 09:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
  _putimage (Solved) Pete 0 224 11-16-2025, 06:48 AM
Last Post: Pete
  NewBie Question niteflyer 2 345 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 388 11-02-2025, 11:37 AM
Last Post: Magdha
  '$include: 'file.tmr' Timing Question pmackay 2 439 10-16-2025, 12:20 PM
Last Post: a740g

Forum Jump:


Users browsing this thread: 2 Guest(s)