Sunday, August 27, 2023

🪲 CIRCLE, LINE, PAINT: "default colour" issue fixed

Update 2023-08-28: The latest version of BASIC Anywhere Machine fixes the issue described below.

When we don't specify a colour for any of those three statements, the colour used ought to be the foreground colour specified with the COLOR statement.

If a foreground colour has not been specified with the COLOR statement, then the default foreground colour for the screen mode ought to be used.

Well until today, I never noticed that, regardless of foreground colour specified with the COLOR statement, the original wwwBASIC code always chooses the default foreground colour of the screen current screen mode when no colour is specified for any of CIRCLE, LINE, and PAINT.


In the screenshot above, the rectangle and both circles should be yellow, just like the text.

If you want to experience this first hand, try out your own tests in the current version of BAM.

I've got a fix for the problem which I'm testing.  I should have that rolled out in a new version of BAM sometime within the next couple of days.  If you want to try the fixed version: the development version of BAM.

Screenshot of the same program in the development version of BAM:







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...