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

🖥 Flower Tesselation: Testing DRAW and recursive SUB's

This BAM program inspired by Richard Russell's "Flower-like tesselation" BBC BASIC program posted on Facebook . Created in ord...