- Treballant en el mapa

This commit is contained in:
2024-09-16 14:08:49 +02:00
parent 2fd5f39285
commit 4ace433340
3 changed files with 72 additions and 30 deletions

View File

@@ -504,6 +504,17 @@ namespace draw
sel_color = col;
}
void isoline(int x, int y, const int dx, const int dy, const int len)
{
for (int i=0; i<len; ++i)
{
pset(destination, x,y, sel_color);
x+=dx;
pset(destination, x,y, sel_color);
x+=dx; y+=dy;
}
}
void hline(const int x, const int y, const int w)
{
for (int i=x;i<x+w;++i) pset(destination, i, y, sel_color);