mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
10 lines
279 B
C
10 lines
279 B
C
#include <kandinsky/rect.h>
|
|
#include <kandinsky/referential.h>
|
|
#include <string.h>
|
|
|
|
void KDFillRect(KDRect rect, KDColor color) {
|
|
for (KDCoordinate y = rect.y ; y < (rect.y + rect.height); y++) {
|
|
memset(KDPixelAddress((KDPoint){.x=rect.x, .y=y}), color, rect.width);
|
|
}
|
|
}
|