Tuesday, January 17, 2023

A few things I'm working on.

The PALETTE statement.

The "PALETTE [attribute,color]" syntax as per https://hwiegman.home.xs4all.nl/gw-man/PALETTE.html.


A _RGB2BGR function.

The palette expects a colour specified as Blue Green Red.  Because I like to specify colours in Red Green Blue, I want a function that will take my RGB colour and convert it to BGR for me when I use the PALETTE statement.


Change to screen mode 13.

At the moment and as per "out of the box" wwwBASIC, screen mode 13 has the "undefined" colour scheme (it has no colours 0,1,2,3 ...), so rgb colours must be specified whenever some colour is needed.

I'd like to change screen mode 13 to use a "P256" colour scheme.  The scheme will allow defining via PALETTE any RGB colour to each of the 256 attributes (i.e. colors 0 - 255).

The default palette for P256 will only have the first 64 colours defined, matching EGA colours as per this EGA Colour Table


What do you think ?




Saturday, January 14, 2023

❇ _ALERT

When clicking the "OK" button in an alert box, this would leave the BASIC program thinking the mouse button was still pressed.

In today's new version of BASIC Anywhere Machine, the "mouse button is pressed" tracker gets reset to "nah, the button is not pressed" after the close of an alert box.


Monday, January 2, 2023

🪲 GET (graphics)

 GET seemed to be really confused when processing the color black, half of the time thinking black is blue.

That was pretty funky, but is now fixed.


To test, I created the program Funky-Textured Turning Cylinder.

Sunday, January 1, 2023

🆕 PLOT and UNPLOT

PLOT is an alternative keyword for PSET, and UNPLOT is an alternative keyword for PRESET.

The syntax for PLOT is the same as the syntax for PSET, and the syntax for UNPLOT is the same as the syntax for PRESET.

🆕 _SNDFADE

Latest versions of BASIC Anywhere Machine and the Programming Reference.

Hear the impact, and see the use of, _SNDFADE in the Amazing Grace sample program (scroll down to see the source code below the program's console window).

🖥 Swirling Circles

This strange animation is the result of me wondering: What if I drew circles at each end of a piston, and that piston moved up and down a fi...