-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created wiki page through web user interface.
- Loading branch information
1 parent
a34e853
commit 05ea610
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#summary Library file documentation | ||
Go to the source code of this file. | ||
|
||
= Macros = | ||
|
||
{{{ | ||
#define BLACK 0 | ||
#define BLUE 1 | ||
#define RED 2 | ||
#define MAGENTA 3 | ||
#define GREEN 4 | ||
#define CYAN 5 | ||
#define YELLOW 6 | ||
#define WHITE 7 | ||
#define XMAX 255 | ||
#define YMAX 191 | ||
}}} | ||
|
||
|
||
= Functions = | ||
|
||
{{{ | ||
int attr (int ink, int paper, int bright, int flash) | ||
void cBorder (int color) | ||
void cplot (int x, int y, int attr) | ||
void cls (int attr) | ||
void clsdf (void) | ||
void cDrawRect (int startx, int starty, int endx, int endy, int attr) | ||
void cDrawLine (int startx, int starty, int endx, int endy, int attr) | ||
void cDrawCircle (int x0, int y0, int radius, int attr) | ||
void cDrawFilledCircle (int x0, int y0, int radius, int attr) | ||
void cDrawFilledRect (int startx, int starty, int endx, int endy, int attr) | ||
}}} | ||
|
||
= Function Documentation = | ||
|
||
---- | ||
|
||
{{{ | ||
int attr(int ink, | ||
int paper, | ||
int bright, | ||
int flash | ||
) | ||
}}} | ||
|
||
Helper function - return the attribute value based on the specified ink and paper colours | ||
|
||
*Parameters* | ||
<table> | ||
<tr><td>`ink`</td><td>an integer representing the ink colour (0 - 7) </td></tr> | ||
<tr><td>`paper`</td><td>an integer representing the paper colour (0 - 7)</td></tr> | ||
<tr><td>`bright`</td><td>an integer specifying wether bright is used (0, 1)</td></tr> | ||
<tr><td>`flash`</td><td>an integer specifying wether flash is used (0, 1) </td></tr> | ||
</table> | ||
*Returns* | ||
an integer representing the attribute value | ||
---- |