ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
draw.c File Reference
#include "../../ugbc.h"

Go to the source code of this file.

Functions

void draw (Environment *_environment, char *_x0, char *_y0, char *_x1, char *_y1, char *_c, int _preserve_color)
 Emit ASM code to implement DRAW command.

Function Documentation

◆ draw()

void draw ( Environment * _environment,
char * _x0,
char * _y0,
char * _x1,
char * _y1,
char * _c,
int _preserve_color )

Emit ASM code to implement DRAW command.

Parameters
_environmentCurrent calling environment
_x1Left abscissa of the line
_y1Left ordinate of the line
_x2Right abscissa of the line
_y2Right ordinate of the line
_cColor to use for drawing the line

Definition at line 153 of file draw.c.