Thursday, July 7, 2022

➕ STEP keyword for LINE statement

 BAM now supports the "STEP" keyword in the LINE statement.


Syntax now supported by BAM:

  • To draw a line from one coordinate to another:
    LINE (x1,y1) - (x2,y2), Color
  • To draw a line from the last pen position to another coordinate:
    LINE - (x2,y2), Color
  • To draw a line from one coordinate to a position relative to the first coordinate:
    LINE (x1,y1) - STEP (x2,y2), Color
For each of the syntax forms above, they can also have the optional "box-fill" parameter.

"box-fill" can be "B" for a hollow box, or "BF" for a filled-in box.

  • To draw a line from one coordinate to another:
    LINE (x1,y1) - (x2,y2), Color, box-fill
  • To draw a line from the last pen position to another coordinate:
    LINE - (x2,y2), Color, box-fill
  • To draw a line from one coordinate to a position relative to the first coordinate:
    LINE (x1,y1) - STEP (x2,y2), Color, box-fill

No comments:

Post a Comment

🖥 Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...