wireframe! and music!
This commit is contained in:
@@ -133,6 +133,20 @@ void cat_fill(int layer, int visible, int x, int y, int w, int h, unsigned char
|
||||
cat_pixel(layer, visible, cx + x, cy + y, r, g, b);
|
||||
}
|
||||
|
||||
void cat_wireframe(int layer, int visible, int x, int y, int w, int h, unsigned char r, unsigned char g, unsigned char b)
|
||||
{
|
||||
int cx; for (cx = 0; cx < w; cx++)
|
||||
{
|
||||
cat_pixel(layer, visible, x + cx, y, r, g, b);
|
||||
cat_pixel(layer, visible, x + cx, y+h, r, g, b);
|
||||
}
|
||||
int cy; for (cy = 0; cy < h; cy++)
|
||||
{
|
||||
cat_pixel(layer, visible, x, y + cy, r, g, b);
|
||||
cat_pixel(layer, visible, x + w, y + cy, r, g, b);
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: cat bresenham */
|
||||
|
||||
/* audio... */
|
||||
|
||||
Reference in New Issue
Block a user