24 _ksys_draw_line(a.x, a.y, b.x, b.y, color);
30 inline void DrawPixel(point position, ksys_color_t color)
32 _ksys_draw_pixel(position.x, position.y, color);
40 void DrawCircle(point coord,
unsigned Radius,
unsigned detalization = 36, ksys_color_t color =
OS::sys_color_table.work_graph)
45 for (
unsigned angle = 1; angle <= detalization * 10; angle += 36 / detalization)
47 buff = {coord.x + b, coord.y + c};
48 b = Radius * cos(angle);
49 c = sqrt((Radius*Radius) - (b*b));
50 point n = {coord.x + b, coord.y + c};
59 void DrawRectangleFill(point position, point size, ksys_color_t color =
OS::sys_color_table.work_graph)
61 position.x *= AAANUMBER;
62 position.y *= AAANUMBER;
65 "int $0x40" ::
"a"(13),
"b"(position.x + size.x),
"c"(position.y + size.y),
"d"(color));
72 void DrawCircleFill(point coord,
unsigned Radius, ksys_color_t color =
OS::sys_color_table.work_graph)
74 DrawCircle(coord, Radius, color);
75 unsigned b = Radius * cos(90+45);
76 unsigned c = sqrt((Radius * Radius) - (b * b));
77 point n = {coord.x + b, coord.y + c};
78 DrawRectangleFill(n, {(coord.x - n.x) * 2, c * 2}, color);
79 for (
unsigned i = Radius; i > (Radius -(coord.x - n.x)); i--)
81 DrawCircle(coord, i, NULL, color);
90 void DrawPoint(point position,
unsigned size, ksys_color_t color =
OS::sys_color_table.work_graph,
bool a =
false)
98 DrawCircle(position, size, color);
102 DrawCircleFill(position, size, color);
110 void DrawRectangleLines(point a, point b, ksys_color_t color =
OS::sys_color_table.work_graph)
112 DrawLine(a, {b.x, a.y}, color);
113 DrawLine(a, {a.x, b.y}, color);
114 DrawLine({b.x, a.y}, b, color);
115 DrawLine({a.x, b.y}, b, color);
125 inline void DrawTriangle(point a, point b, point c, ksys_color_t color =
OS::sys_color_table.work_graph)
127 DrawLine(a, b, color);
128 DrawLine(a, c, color);
129 DrawLine(b, c, color);
ksys_colors_table_t sys_color_table
Таблица стандартных(системных) цветов
Definition base.hpp:37
Основное пространство имён
Definition base.hpp:17