{"id":342990,"date":"2022-12-21T21:00:56","date_gmt":"2022-12-21T21:00:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342990"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2022-12-21T21:00:56","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342990","title":{"rendered":"<span>\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b SFML C++<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"https:\/\/habr.com\/ru\/post\/704956\/\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0442\u0435\u043c\u0430<\/u><\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/35f\/61a\/75e\/35f61a75e8d6c12f43bacb81b88ee529.jpg\" width=\"1400\" height=\"787\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/35f\/61a\/75e\/35f61a75e8d6c12f43bacb81b88ee529.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SFML \u043b\u0435\u0447\u0438\u0442 \u0433\u043e\u043b\u043e\u0432\u043d\u0443\u044e \u0431\u043e\u043b\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0432 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438, \u043d\u043e \u0438 \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0438 \u0432 \u0448\u043a\u043e\u043b\u0435. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0431\u0451\u043d\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0438 \u043f\u0440\u0438\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0432\u044c \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0437\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f  \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0438\u0433\u0440\u044b \u0438\u043b\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0444\u0438\u0437\u0438\u043a\u043e-\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 C++ \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 SFML. <\/p>\n<h2>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <\/h2>\n<ol>\n<li>\n<p><a href=\"https:\/\/visualstudio.microsoft.com\/ru\/\" rel=\"noopener noreferrer nofollow\">Visual Studio<\/a> c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c &#171;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0421++&#187;.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.sfml-dev.org\/download\/sfml\/2.5.1\/\" rel=\"noopener noreferrer nofollow\">\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SFML<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/704956\/\" rel=\"noopener noreferrer nofollow\">SFMLWorldTim<\/a>e.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/t.me\/ue4_dev_soft\/56\" rel=\"noopener noreferrer nofollow\">\u0428\u0440\u0438\u0444\u0442\u044b \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <\/a>\u0438\u043b\u0438 <a href=\"https:\/\/github.com\/cnet-sudo\/Clock.git\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>. <\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430<\/h2>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/703500\/\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a Visual Studio \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 SFML <\/a>\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 SFML  \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043a\u043e\u0434\u0430.<\/p>\n<pre><code class=\"cpp\">#include &lt;SFML\/Graphics.hpp> #include\"SFMLWorldTime.h\"  using namespace sf;  int main() {     \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 900\u0445900      RenderWindow window(VideoMode(900, 900), L\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b\", Style::Default);          window.setVerticalSyncEnabled(true);  \/\/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f          SFMLWorldTime etm(50, 50, 4, Color::Yellow); \/\/ \u041e\u0431\u044a\u0435\u043a\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b                     while (window.isOpen())     {         Event event;         while (window.pollEvent(event))         {             if (event.type == Event::Closed)                 window.close();         }                  window.clear(Color::Blue); \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 \u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0432 \u0441\u0438\u043d\u0438\u0439 \u0446\u0432\u0435\u0442         etm.drawTime(window);  \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435         window.display();     }     return 0; }<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0444\u0430\u0439\u043b\u044b SFMLWorldTime.h \u0438 SFMLWorldTime.cpp \u0438 \u043f\u0430\u043f\u043a\u0443 \u0441\u043e \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438 lib.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0444\u0430\u0439\u043b\u044b SFMLWorldTime.h \u0438 SFMLWorldTime.cpp.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5cc\/bf4\/d1e\/5ccbf4d1e621133e33e03871a0b5f84a.jpg\" width=\"1000\" height=\"720\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5cc\/bf4\/d1e\/5ccbf4d1e621133e33e03871a0b5f84a.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/32a\/884\/8db\/32a8848dbbd64ec340995fbc147db1f8.jpg\" width=\"1061\" height=\"306\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/32a\/884\/8db\/32a8848dbbd64ec340995fbc147db1f8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043a\u043e\u0434 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0437\u043e\u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 SFMLWorldTime.h.<\/p>\n<pre><code class=\"cpp\">#include\"SFMLWorldTime.h\"<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0438 \u0440\u0438\u0441\u0443\u0435\u043c \u0438\u0445 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435. <\/p>\n<pre><code class=\"cpp\">SFMLWorldTime etm(50, 50, 4, Color::Yellow);  etm.drawTime(window); <\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/2a2\/4ee\/a3e\/2a24eea3eda3f03c34e5f142c958e5ae.jpg\" width=\"522\" height=\"510\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2a2\/4ee\/a3e\/2a24eea3eda3f03c34e5f142c958e5ae.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0427\u0430\u0441\u043e\u0432\u044b\u0445 \u0434\u0435\u043b \u043c\u0430\u0441\u0442\u0435\u0440 <\/h2>\n<pre><code class=\"cpp\">#define _USE_MATH_DEFINES #include &lt;SFML\/Graphics.hpp> #include\"SFMLWorldTime.h\" #include&lt;math.h>   using namespace sf; using namespace std;  int main() {          RenderWindow window(VideoMode(900, 900), L\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b\", Style::Default);          window.setVerticalSyncEnabled(true);      SFMLWorldTime etm(50, 50, 4, Color::Yellow);      \/\/ \u041a\u043e\u0440\u043f\u0443\u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432     CircleShape circleTime(300.f);     circleTime.setOrigin(150, 150);     circleTime.setPosition(303, 303);     circleTime.setFillColor(Color::Blue);     circleTime.setOutlineThickness(10);     circleTime.setOutlineColor(Color::Yellow);      \/\/ \u0420\u0438\u0441\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445     CircleShape PointMin;     PointMin.setFillColor(Color::Yellow);     float radiusNum = 280; \/\/ \u0440\u0430\u0434\u0438\u0443\u0441 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u043a     float radiusPoint;     float CenterClockX = 450;     float CenterClockY = 450;     float xPoint, yPoint;      \/\/ \u041e\u0446\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445     Font fontTime;     if (!fontTime.loadFromFile(\"lib\/dockerthree.ttf\")) return 777;     Text TimeText;     TimeText.setFont(fontTime);     TimeText.setCharacterSize(30);     TimeText.setFillColor(Color::Yellow);     float numx, numy;      \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432     RectangleShape secArrow(Vector2f(2, 280));                \/\/\u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f     InitRect(secArrow, 453, 453, 1, 280, Color::Red);     RectangleShape minArrow(Vector2f(8, 260));               \/\/\u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f     InitRect(minArrow, 455, 455, 4, 260, Color::Yellow);     RectangleShape hourArrow(Vector2f(12, 180));             \/\/\u0447\u0430\u0441\u043e\u0432\u0430\u044f     InitRect(hourArrow, 455, 455, 6, 180, Color::Yellow);                      while (window.isOpen())     {         Event event;         while (window.pollEvent(event))         {             if (event.type == Event::Closed)                 window.close();         }                  window.clear(Color::Blue);         etm.drawTime(window);     \/\/ \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b         window.draw(circleTime);  \/\/ \u043a\u043e\u0440\u043f\u0443\u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432          \/\/ \u0420\u0438\u0441\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432          for (int a = 0; a &lt; 60; a++) {             if (a % 5 == 0)  radiusPoint = 8; else  radiusPoint = 4;             xPoint = CenterClockX + radiusNum * cos(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             yPoint = CenterClockY - radiusNum * sin(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             PointMin.setRadius(radiusPoint);             PointMin.setOrigin(radiusPoint \/ 2, radiusPoint \/ 2);             PointMin.setPosition(xPoint, yPoint);             window.draw(PointMin);         }          \/\/ \u041e\u0446\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432         for (int i = 1; i &lt;= 12; i++)         {             numx = CenterClockX + (radiusNum - 30) * cos(-30 * i * (M_PI \/ 180) + M_PI \/ 2);             numy = CenterClockX - (radiusNum - 30) * sin(-30 * i * (M_PI \/ 180) + M_PI \/ 2);              if (i &lt;= 5) TimeText.setPosition(numx - 10, numy - 17);             else  TimeText.setPosition(numx - 8, numy - 15);             TimeText.setString(to_string(i));             window.draw(TimeText);          }         secArrow.setRotation(6 * etm.getsec());                         \/\/ \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438          minArrow.setRotation(6 * etm.getmin() + etm.getsec() * 0.1);    \/\/ \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043c\u0438\u043d\u0443\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438          hourArrow.setRotation(30 * etm.gethour() + etm.getmin() * 0.5); \/\/ \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438           window.draw(hourArrow); \/\/ \u0447\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430         window.draw(minArrow);  \/\/ \u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430         window.draw(secArrow);  \/\/ \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f          window.display();     }     return 0; } <\/code><\/pre>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/701224\/\" rel=\"noopener noreferrer nofollow\">\u0420\u0438\u0441\u0443\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c<\/a> \u0442.\u0435. \u043a\u043e\u043d\u0442\u0443\u0440 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0447\u0430\u0441\u043e\u0432<\/p>\n<pre><code class=\"cpp\">\/\/ \u0411\u043b\u043e\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432     CircleShape circleTime(300.f);     circleTime.setOrigin(150, 150);     circleTime.setPosition(303, 303);     circleTime.setFillColor(Color::Blue);     circleTime.setOutlineThickness(10);     circleTime.setOutlineColor(Color::Yellow);  \/\/ \u0411\u043b\u043e\u043a \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432     window.draw(circleTime);<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/dcb\/4ca\/f98\/dcb4caf98eeab2e881c1baa08b52f71f.jpg\" width=\"898\" height=\"930\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dcb\/4ca\/f98\/dcb4caf98eeab2e881c1baa08b52f71f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u043a\u0440\u043e\u0441 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442<\/p>\n<pre><code class=\"cpp\">#define _USE_MATH_DEFINES<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<pre><code class=\"cpp\">#include&lt;math.h><\/code><\/pre>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u043a \u0447\u0430\u0441\u043e\u0432.<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u0440\u0443\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0440\u0438\u0441\u043e\u043a.<\/p>\n<pre><code class=\"cpp\">    \/\/ \u0411\u043b\u043e\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432     CircleShape PointMin;                  \/\/ \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u0440\u0443\u0433\u0430     PointMin.setFillColor(Color::Yellow);  \/\/ \u0446\u0432\u0435\u0442 \u043a\u0440\u0443\u0433\u0430 \u0436\u0451\u043b\u0442\u044b\u0439<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u043c \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u043a.<\/p>\n<pre><code class=\"cpp\">float radiusNum = 280;<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/2b1\/6c0\/a6a\/2b16c0a6ab8ddffb618180f1d62b0511.jpg\" width=\"893\" height=\"927\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2b1\/6c0\/a6a\/2b16c0a6ab8ddffb618180f1d62b0511.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0440\u0438\u0441\u043e\u043a \u0442.\u0435. \u0440\u0430\u0434\u0438\u0443\u0441\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u0440\u0443\u0433\u0430 PointMin<\/p>\n<pre><code class=\"cpp\">float radiusPoint;<\/code><\/pre>\n<p>\u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438<\/p>\n<pre><code class=\"cpp\">float CenterClockX = 450; float CenterClockY = 450;<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a9c\/b12\/aef\/a9cb12aefdbaf5dd7a590f71265050be.jpg\" width=\"893\" height=\"927\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a9c\/b12\/aef\/a9cb12aefdbaf5dd7a590f71265050be.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0440\u0438\u0441\u043e\u043a<\/p>\n<pre><code class=\"cpp\">float xPoint, yPoint;<\/code><\/pre>\n<p><strong>\u0420\u0438\u0441\u0443\u0435\u043c \u0440\u0438\u0441\u043a\u0438 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435<\/strong><\/p>\n<pre><code class=\"cpp\">for (int a = 0; a &lt; 60; a++)  {             \/\/ \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u044f\u0442\u043e\u0439 \u0440\u0438\u0441\u043a\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0434\u0438\u0443\u0441             if (a % 5 == 0)  radiusPoint = 8; else  radiusPoint = 4;             \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0440\u0438\u0441\u043a\u0438             xPoint = CenterClockX + radiusNum * cos(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             yPoint = CenterClockY - radiusNum * sin(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             \/\/ \u0437\u0430\u0434\u0430\u0451\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0438\u0441\u043a\u0438 \u0442.\u0435. \u043e\u0431\u044a\u0435\u043a\u0442\u0443 \u043a\u0440\u0443\u0433\u0430  PointMin             PointMin.setRadius(radiusPoint);             PointMin.setOrigin(radiusPoint \/ 2, radiusPoint \/ 2);             PointMin.setPosition(xPoint, yPoint);             \/\/ \u0440\u0438\u0441\u0443\u0435\u043c \u0440\u0438\u0441\u043a\u0443 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435             window.draw(PointMin); }<\/code><\/pre>\n<p>\u0412 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0440\u0438\u0441\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/learn.microsoft.com\/ru-ru\/cpp\/c-runtime-library\/math-constants?view=msvc-170\" rel=\"noopener noreferrer nofollow\">\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443<\/a> \u0447\u0438\u0441\u043b\u0430 \u041f\u0438 &#8212; M_PI.<\/p>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 \u0447\u0430\u0441\u043e\u0432<\/strong><\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0448\u0440\u0438\u0444\u0442 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0440, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0448\u0440\u0438\u0444\u0442\u0430 <strong>fontTime<\/strong> \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0448\u0440\u0438\u0444\u0442 <strong>dockerthree.ttf<\/strong><\/p>\n<pre><code class=\"cpp\">Font fontTime; if (!fontTime.loadFromFile(\"lib\/dockerthree.ttf\")) return 777;<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0437\u0430\u0434\u0430\u0451\u043c \u0435\u043c\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: \u0448\u0440\u0438\u0444\u0442\u0430, \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u0446\u0432\u0435\u0442\u0430.<\/p>\n<pre><code class=\"cpp\">    Text TimeText;     TimeText.setFont(fontTime);     TimeText.setCharacterSize(30);     TimeText.setFillColor(Color::Yellow);<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0440.<\/p>\n<pre><code class=\"cpp\">float numx, numy;<\/code><\/pre>\n<p><strong>\u0420\u0438\u0441\u0443\u0435\u043c \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435<\/strong><\/p>\n<pre><code class=\"cpp\">for (int i = 1; i &lt;= 12; i++)         {             \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438             numx = CenterClockX + (radiusNum - 30) * cos(-30 * i * (M_PI \/ 180) + M_PI \/ 2);             numy = CenterClockX - (radiusNum - 30) * sin(-30 * i * (M_PI \/ 180) + M_PI \/ 2);             \/\/ \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0440              if (i &lt;= 5) TimeText.setPosition(numx - 10, numy - 17);             else  TimeText.setPosition(numx - 8, numy - 15);             \/\/ \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442             TimeText.setString(to_string(i));             \/\/ \u0440\u0438\u0441\u0443\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442             window.draw(TimeText);          }<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/233\/21a\/bb5\/23321abb526d7488b93948b69b2f9dd0.jpg\" width=\"899\" height=\"929\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/233\/21a\/bb5\/23321abb526d7488b93948b69b2f9dd0.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043b\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0447\u0430\u0441\u043e\u0432  \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u0445.<\/strong><\/p>\n<pre><code class=\"cpp\">    RectangleShape secArrow(Vector2f(2, 280));               \/\/ \u0421\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430     InitRect(secArrow, 453, 453, 1, 280, Color::Red);     RectangleShape minArrow(Vector2f(8, 260));               \/\/ \u041c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430     InitRect(minArrow, 455, 455, 4, 260, Color::Yellow);     RectangleShape hourArrow(Vector2f(12, 180));             \/\/ \u0427\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430     InitRect(hourArrow, 455, 455, 6, 180, Color::Yellow);<\/code><\/pre>\n<p>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0431\u0430\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u0444\u043e\u0440\u043c\u044b \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 <strong>RectangleShape. <\/strong>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>InitRect<\/strong> (), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 SFMLWorldTime.h.<\/p>\n<p><strong>\u0420\u0438\u0441\u0443\u0435\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0447\u0430\u0441\u043e\u0432<\/strong><\/p>\n<pre><code class=\"cpp\">\/\/ \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0443\u0433\u043b\u0430 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0442.\u0435. \u0441\u0442\u0440\u0435\u043b\u043e\u043a secArrow.setRotation(6 * etm.getsec());                         \/\/ \u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438  minArrow.setRotation(6 * etm.getmin() + etm.getsec() * 0.1);    \/\/ \u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043c\u0438\u043d\u0443\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438  hourArrow.setRotation(30 * etm.gethour() + etm.getmin() * 0.5); \/\/ \u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438   \/\/ \u0420\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435 window.draw(hourArrow); \/\/ \u0447\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 window.draw(minArrow);  \/\/ \u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 window.draw(secArrow);  \/\/ \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f<\/code><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 <strong>setRotation <\/strong>\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432\u043e\u043a\u0440\u0443\u0433 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u0441\u0438, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0443\u0433\u043b\u0443 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043c\u0435\u0442\u043e\u0434\u0430. <\/p>\n<p><strong>\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0441\u0442\u0440\u0435\u043b\u043e\u043a.<\/strong><\/p>\n<p>\u0421\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043f\u043e\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u0443\u0433\u043e\u043b \u0440\u0430\u0432\u043d\u044b\u0439 360 \u00b0\/60 \u0441\u0435\u043a = 6 \u00b0 (\u0432\u0441\u044f \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c 360 \u00b0  \u043f\u043e \u043d\u0435\u0439 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c 60 \u0441\u0435\u043a\u0443\u043d\u0434) \u0438 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p>\u041c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u043d\u0430 360 \u00b0\/60 \u043c\u0438\u043d = 6 \u00b0 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u0438\u043d\u0443\u0442 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c 6 \u00b0\/60\u0441\u0435\u043a=0.1 \u00b0 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0435\u043a\u0443\u043d\u0434. <\/p>\n<p>\u0427\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0432\u0435\u0440\u043d\u0451\u0442\u0441\u044f \u043d\u0430  360\u00b0\/12 \u0447\u0430\u0441\u043e\u0432 = 30 \u00b0 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0447\u0430\u0441\u043e\u0432 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c  30 \u00b0\/60\u043c\u0438\u043d=0,5\u00b0 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u043d\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u0438\u043d\u0443\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/082\/30d\/c40\/08230dc40d05f2ec06c81e970b148b1b.gif\" width=\"600\" height=\"596\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/082\/30d\/c40\/08230dc40d05f2ec06c81e970b148b1b.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0432\u0438\u0434\u0435\u043e &#171;\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b SFML C++&#187;.  <\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/63a33b7a0f6585ef24c14626\" data-style=\"\" id=\"63a33b7a0f6585ef24c14626\" width=\"\"><\/div>\n<p><a href=\"https:\/\/github.com\/cnet-sudo\/Clock.git\" rel=\"noopener noreferrer nofollow\">\u041a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/704956\/\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0442\u0435\u043c\u0430<\/u><\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/706954\/\"> https:\/\/habr.com\/ru\/post\/706954\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"https:\/\/habr.com\/ru\/post\/704956\/\" rel=\"noopener noreferrer nofollow\"><u>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0442\u0435\u043c\u0430<\/u><\/a><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SFML \u043b\u0435\u0447\u0438\u0442 \u0433\u043e\u043b\u043e\u0432\u043d\u0443\u044e \u0431\u043e\u043b\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0432 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438, \u043d\u043e \u0438 \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0438 \u0432 \u0448\u043a\u043e\u043b\u0435. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0431\u0451\u043d\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0438 \u043f\u0440\u0438\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0432\u044c \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0437\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f  \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0438\u0433\u0440\u044b \u0438\u043b\u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0444\u0438\u0437\u0438\u043a\u043e-\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 C++ \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 SFML. <\/p>\n<h2>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <\/h2>\n<ol>\n<li>\n<p><a href=\"https:\/\/visualstudio.microsoft.com\/ru\/\" rel=\"noopener noreferrer nofollow\">Visual Studio<\/a> c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c &#171;\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0421++&#187;.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.sfml-dev.org\/download\/sfml\/2.5.1\/\" rel=\"noopener noreferrer nofollow\">\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SFML<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/704956\/\" rel=\"noopener noreferrer nofollow\">SFMLWorldTim<\/a>e.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/t.me\/ue4_dev_soft\/56\" rel=\"noopener noreferrer nofollow\">\u0428\u0440\u0438\u0444\u0442\u044b \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <\/a>\u0438\u043b\u0438 <a href=\"https:\/\/github.com\/cnet-sudo\/Clock.git\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>. <\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430<\/h2>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/703500\/\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a Visual Studio \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 SFML <\/a>\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 SFML  \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043a\u043e\u0434\u0430.<\/p>\n<pre><code class=\"cpp\">#include &lt;SFML\/Graphics.hpp> #include\"SFMLWorldTime.h\"  using namespace sf;  int main() {     \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 900\u0445900      RenderWindow window(VideoMode(900, 900), L\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b\", Style::Default);          window.setVerticalSyncEnabled(true);  \/\/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f          SFMLWorldTime etm(50, 50, 4, Color::Yellow); \/\/ \u041e\u0431\u044a\u0435\u043a\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b                     while (window.isOpen())     {         Event event;         while (window.pollEvent(event))         {             if (event.type == Event::Closed)                 window.close();         }                  window.clear(Color::Blue); \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 \u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0432 \u0441\u0438\u043d\u0438\u0439 \u0446\u0432\u0435\u0442         etm.drawTime(window);  \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435         window.display();     }     return 0; }<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0444\u0430\u0439\u043b\u044b SFMLWorldTime.h \u0438 SFMLWorldTime.cpp \u0438 \u043f\u0430\u043f\u043a\u0443 \u0441\u043e \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438 lib.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0444\u0430\u0439\u043b\u044b SFMLWorldTime.h \u0438 SFMLWorldTime.cpp.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043a\u043e\u0434 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0437\u043e\u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 SFMLWorldTime.h.<\/p>\n<pre><code class=\"cpp\">#include\"SFMLWorldTime.h\"<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0438 \u0440\u0438\u0441\u0443\u0435\u043c \u0438\u0445 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435. <\/p>\n<pre><code class=\"cpp\">SFMLWorldTime etm(50, 50, 4, Color::Yellow);  etm.drawTime(window); <\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0427\u0430\u0441\u043e\u0432\u044b\u0445 \u0434\u0435\u043b \u043c\u0430\u0441\u0442\u0435\u0440 <\/h2>\n<pre><code class=\"cpp\">#define _USE_MATH_DEFINES #include &lt;SFML\/Graphics.hpp> #include\"SFMLWorldTime.h\" #include&lt;math.h>   using namespace sf; using namespace std;  int main() {          RenderWindow window(VideoMode(900, 900), L\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b\", Style::Default);          window.setVerticalSyncEnabled(true);      SFMLWorldTime etm(50, 50, 4, Color::Yellow);      \/\/ \u041a\u043e\u0440\u043f\u0443\u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432     CircleShape circleTime(300.f);     circleTime.setOrigin(150, 150);     circleTime.setPosition(303, 303);     circleTime.setFillColor(Color::Blue);     circleTime.setOutlineThickness(10);     circleTime.setOutlineColor(Color::Yellow);      \/\/ \u0420\u0438\u0441\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445     CircleShape PointMin;     PointMin.setFillColor(Color::Yellow);     float radiusNum = 280; \/\/ \u0440\u0430\u0434\u0438\u0443\u0441 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u043a     float radiusPoint;     float CenterClockX = 450;     float CenterClockY = 450;     float xPoint, yPoint;      \/\/ \u041e\u0446\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445     Font fontTime;     if (!fontTime.loadFromFile(\"lib\/dockerthree.ttf\")) return 777;     Text TimeText;     TimeText.setFont(fontTime);     TimeText.setCharacterSize(30);     TimeText.setFillColor(Color::Yellow);     float numx, numy;      \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432     RectangleShape secArrow(Vector2f(2, 280));                \/\/\u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f     InitRect(secArrow, 453, 453, 1, 280, Color::Red);     RectangleShape minArrow(Vector2f(8, 260));               \/\/\u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f     InitRect(minArrow, 455, 455, 4, 260, Color::Yellow);     RectangleShape hourArrow(Vector2f(12, 180));             \/\/\u0447\u0430\u0441\u043e\u0432\u0430\u044f     InitRect(hourArrow, 455, 455, 6, 180, Color::Yellow);                      while (window.isOpen())     {         Event event;         while (window.pollEvent(event))         {             if (event.type == Event::Closed)                 window.close();         }                  window.clear(Color::Blue);         etm.drawTime(window);     \/\/ \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b         window.draw(circleTime);  \/\/ \u043a\u043e\u0440\u043f\u0443\u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432          \/\/ \u0420\u0438\u0441\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432          for (int a = 0; a &lt; 60; a++) {             if (a % 5 == 0)  radiusPoint = 8; else  radiusPoint = 4;             xPoint = CenterClockX + radiusNum * cos(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             yPoint = CenterClockY - radiusNum * sin(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             PointMin.setRadius(radiusPoint);             PointMin.setOrigin(radiusPoint \/ 2, radiusPoint \/ 2);             PointMin.setPosition(xPoint, yPoint);             window.draw(PointMin);         }          \/\/ \u041e\u0446\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432         for (int i = 1; i &lt;= 12; i++)         {             numx = CenterClockX + (radiusNum - 30) * cos(-30 * i * (M_PI \/ 180) + M_PI \/ 2);             numy = CenterClockX - (radiusNum - 30) * sin(-30 * i * (M_PI \/ 180) + M_PI \/ 2);              if (i &lt;= 5) TimeText.setPosition(numx - 10, numy - 17);             else  TimeText.setPosition(numx - 8, numy - 15);             TimeText.setString(to_string(i));             window.draw(TimeText);          }         secArrow.setRotation(6 * etm.getsec());                         \/\/ \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438          minArrow.setRotation(6 * etm.getmin() + etm.getsec() * 0.1);    \/\/ \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043c\u0438\u043d\u0443\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438          hourArrow.setRotation(30 * etm.gethour() + etm.getmin() * 0.5); \/\/ \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438           window.draw(hourArrow); \/\/ \u0447\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430         window.draw(minArrow);  \/\/ \u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430         window.draw(secArrow);  \/\/ \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f          window.display();     }     return 0; } <\/code><\/pre>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/701224\/\" rel=\"noopener noreferrer nofollow\">\u0420\u0438\u0441\u0443\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c<\/a> \u0442.\u0435. \u043a\u043e\u043d\u0442\u0443\u0440 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0447\u0430\u0441\u043e\u0432<\/p>\n<pre><code class=\"cpp\">\/\/ \u0411\u043b\u043e\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432     CircleShape circleTime(300.f);     circleTime.setOrigin(150, 150);     circleTime.setPosition(303, 303);     circleTime.setFillColor(Color::Blue);     circleTime.setOutlineThickness(10);     circleTime.setOutlineColor(Color::Yellow);  \/\/ \u0411\u043b\u043e\u043a \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432     window.draw(circleTime);<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u043a\u0440\u043e\u0441 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442<\/p>\n<pre><code class=\"cpp\">#define _USE_MATH_DEFINES<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<pre><code class=\"cpp\">#include&lt;math.h><\/code><\/pre>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u043a \u0447\u0430\u0441\u043e\u0432.<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u0440\u0443\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0440\u0438\u0441\u043e\u043a.<\/p>\n<pre><code class=\"cpp\">    \/\/ \u0411\u043b\u043e\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432     CircleShape PointMin;                  \/\/ \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u0440\u0443\u0433\u0430     PointMin.setFillColor(Color::Yellow);  \/\/ \u0446\u0432\u0435\u0442 \u043a\u0440\u0443\u0433\u0430 \u0436\u0451\u043b\u0442\u044b\u0439<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u043c \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0438\u0441\u043e\u043a.<\/p>\n<pre><code class=\"cpp\">float radiusNum = 280;<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0440\u0438\u0441\u043e\u043a \u0442.\u0435. \u0440\u0430\u0434\u0438\u0443\u0441\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u0440\u0443\u0433\u0430 PointMin<\/p>\n<pre><code class=\"cpp\">float radiusPoint;<\/code><\/pre>\n<p>\u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438<\/p>\n<pre><code class=\"cpp\">float CenterClockX = 450; float CenterClockY = 450;<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0440\u0438\u0441\u043e\u043a<\/p>\n<pre><code class=\"cpp\">float xPoint, yPoint;<\/code><\/pre>\n<p><strong>\u0420\u0438\u0441\u0443\u0435\u043c \u0440\u0438\u0441\u043a\u0438 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435<\/strong><\/p>\n<pre><code class=\"cpp\">for (int a = 0; a &lt; 60; a++)  {             \/\/ \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u044f\u0442\u043e\u0439 \u0440\u0438\u0441\u043a\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0434\u0438\u0443\u0441             if (a % 5 == 0)  radiusPoint = 8; else  radiusPoint = 4;             \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0440\u0438\u0441\u043a\u0438             xPoint = CenterClockX + radiusNum * cos(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             yPoint = CenterClockY - radiusNum * sin(-6 * a * (M_PI \/ 180) + M_PI \/ 2);             \/\/ \u0437\u0430\u0434\u0430\u0451\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0438\u0441\u043a\u0438 \u0442.\u0435. \u043e\u0431\u044a\u0435\u043a\u0442\u0443 \u043a\u0440\u0443\u0433\u0430  PointMin             PointMin.setRadius(radiusPoint);             PointMin.setOrigin(radiusPoint \/ 2, radiusPoint \/ 2);             PointMin.setPosition(xPoint, yPoint);             \/\/ \u0440\u0438\u0441\u0443\u0435\u043c \u0440\u0438\u0441\u043a\u0443 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435             window.draw(PointMin); }<\/code><\/pre>\n<p>\u0412 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0440\u0438\u0441\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/learn.microsoft.com\/ru-ru\/cpp\/c-runtime-library\/math-constants?view=msvc-170\" rel=\"noopener noreferrer nofollow\">\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443<\/a> \u0447\u0438\u0441\u043b\u0430 \u041f\u0438 &#8212; M_PI.<\/p>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 \u0447\u0430\u0441\u043e\u0432<\/strong><\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0448\u0440\u0438\u0444\u0442 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0440, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0448\u0440\u0438\u0444\u0442\u0430 <strong>fontTime<\/strong> \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0448\u0440\u0438\u0444\u0442 <strong>dockerthree.ttf<\/strong><\/p>\n<pre><code class=\"cpp\">Font fontTime; if (!fontTime.loadFromFile(\"lib\/dockerthree.ttf\")) return 777;<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0437\u0430\u0434\u0430\u0451\u043c \u0435\u043c\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: \u0448\u0440\u0438\u0444\u0442\u0430, \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u0446\u0432\u0435\u0442\u0430.<\/p>\n<pre><code class=\"cpp\">    Text TimeText;     TimeText.setFont(fontTime);     TimeText.setCharacterSize(30);     TimeText.setFillColor(Color::Yellow);<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0440.<\/p>\n<pre><code class=\"cpp\">float numx, numy;<\/code><\/pre>\n<p><strong>\u0420\u0438\u0441\u0443\u0435\u043c \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043a\u043d\u0435<\/strong><\/p>\n<pre><code class=\"cpp\">for (int i = 1; i &lt;= 12; i++)         {             \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438             numx = CenterClockX + (radiusNum - 30) * cos(-30 * i * (M_PI \/ 180) + M_PI \/ 2);             numy = CenterClockX - (radiusNum - 30) * sin(-30 * i * (M_PI \/ 180) + M_PI \/ 2);             \/\/ \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0440              if (i &lt;= 5) TimeText.setPosition(numx - 10, numy - 17);             else  TimeText.setPosition(numx - 8, numy - 15);             \/\/ \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442             TimeText.setString(to_string(i));             \/\/ \u0440\u0438\u0441\u0443\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442             window.draw(TimeText);          }<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043b\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0447\u0430\u0441\u043e\u0432  \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u0445.<\/strong><\/p>\n<pre><code class=\"cpp\">    RectangleShape secArrow(Vector2f(2, 280));               \/\/ \u0421\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430     InitRect(secArrow, 453, 453, 1, 280, Color::Red);     RectangleShape minArrow(Vector2f(8, 260));               \/\/ \u041c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430     InitRect(minArrow, 455, 455, 4, 260, Color::Yellow);     RectangleShape hourArrow(Vector2f(12, 180));             \/\/ \u0427\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430     InitRect(hourArrow, 455, 455, 6, 180, Color::Yellow);<\/code><\/pre>\n<p>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0431\u0430\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u0444\u043e\u0440\u043c\u044b \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 <strong>RectangleShape. <\/strong>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>InitRect<\/strong> (), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 SFMLWorldTime.h.<\/p>\n<p><strong>\u0420\u0438\u0441\u0443\u0435\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0447\u0430\u0441\u043e\u0432<\/strong><\/p>\n<pre><code class=\"cpp\">\/\/ \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0443\u0433\u043b\u0430 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0442.\u0435. \u0441\u0442\u0440\u0435\u043b\u043e\u043a secArrow.setRotation(6 * etm.getsec());                         \/\/ \u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438  minArrow.setRotation(6 * etm.getmin() + etm.getsec() * 0.1);    \/\/ \u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043c\u0438\u043d\u0443\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438  hourArrow.setRotation(30 * etm.gethour() + etm.getmin() * 0.5);<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-342990","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342990"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342990\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}