27 _ksys_draw_line(a.x, a.y, b.x, b.y, color);
33 inline void DrawPixel(UI::Coord position,
Color::Color color)
35 _ksys_draw_pixel(position.x, position.y, color);
48 for (
unsigned angle = 1; angle <= detalization * 10; angle += 36 / detalization)
50 buff = {coord.x + (int)b, coord.y + (
int)c};
51 b = Radius * cos(angle);
52 c = Radius * sin(angle);
53 UI::Coord n = {coord.x + (int)b, coord.y + (
int)c};
65 "int $0x40" ::
"a"(13),
"b"((position.x << 16) + size.x),
"c"((position.y << 16) + size.y),
"d"(color));
75 DrawCircle(coord, Radius, color);
77 unsigned b = Radius * cos(90+45);
78 unsigned c = Radius * sin(90+45);
79 UI::Coord n = {coord.x + (int)b, coord.y + (
int)c};
81 DrawRectangleFill(n, {(unsigned)(coord.x - n.x) * 2, (unsigned)c * 2}, color);
83 for (
unsigned i = Radius; i > (Radius -(coord.x - n.x)); i--)
85 DrawCircle(coord, i, detalization, color);
102 DrawCircle(position, size, color);
106 DrawCircleFill(position, size, color);
116 DrawLine(a, {b.x, a.y}, color);
117 DrawLine(a, {a.x, b.y}, color);
118 DrawLine({b.x, a.y}, b, color);
119 DrawLine({a.x, b.y}, b, color);
131 DrawLine(a, b, color);
132 DrawLine(a, c, color);
133 DrawLine(b, c, color);
ksys_color_t Color
Цвет
Definition color.hpp:13
Color::ColorsTable sys_color_table
Таблица стандартных(системных) цветов
Definition os.hpp:15
Основное пространство имён
Definition base.hpp:18