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

🖥 Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...