Page 1 of 1

Missing Graphics functions in BASIC

Posted: Mon Jan 15, 2024 5:06 pm
by Bill Leue
According to the current version of the X16 PRG, the Kernal contains these useful graphics calls:
GRAPH_set_window
GRAPH_set_font
GRAPH_get_char_size
GRAPH_draw_oval
GRAPH_draw_image

...and others. However, the BASIC does not seem to support any of these. (unless maybe the documentation is incomplete?) I am surprised that these functions are not available, since it would be just a kernal call to implement them.
-Bill

Re: Missing Graphics functions in BASIC

Posted: Mon Jan 15, 2024 7:01 pm
by ahenry3068
GRAPH_draw_oval is specifically listed as not implemented (if you watch the footnotes). GRAPH_set_window is also only partially implemented.

The other functions can be called with a SYS though there are no specific BASIC keywords for them.

Re: Missing Graphics functions in BASIC

Posted: Mon Jan 15, 2024 7:06 pm
by ahenry3068
I've got some code here that demonstrates using SYS to call ROM functions and at the same time implements it's own Draw_Image using a file as an image buffer

viewtopic.php?t=7022