{"id":210622,"date":"2014-02-03T12:49:02","date_gmt":"2014-02-03T08:49:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210622"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210622","title":{"rendered":"<span class=\"post_title\">\u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439 \u0438\u0437 \u0430\u0440\u043c\u0430\u0442\u0443\u0440\u044b<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u043b\u0430\u043d\u0435\u0442\u044b, \u0425\u0430\u0431\u0440.<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043f\u0440\u044f\u043c\u043e \u0434\u0435\u043d\u044c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0431\u0438\u0442\u0432\u0443 \u0432 EVE Online, \u043d\u0443 \u0430 \u044f \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0434\u0432\u0443\u0445\u043c\u0435\u0440\u043d\u0443\u044e \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u0433\u0440\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0430 \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439. \u041f\u0443\u0441\u0442\u044c \u043a\u043e\u0440\u0430\u0431\u043b\u0438 \u0438 \u043d\u0435 \u0442\u0430\u043a\u0438\u0435 \u0448\u0438\u043a\u0430\u0440\u043d\u044b\u0435 \u043a\u0430\u043a \u0432 EVE, \u0437\u0430\u0442\u043e \u0441\u0432\u043e\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/448\/69e\/9a3\/44869e9a3875c87c74891bcad6545d0b.png\"\/><\/p>\n<p>  \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u043d\u0434\u0435\u0440 \u043d\u0430 \u043a\u0430\u043d\u0432\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043d\u0443\u0436\u0435\u043d \u0442\u0430\u043a\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440. \u041f\u0440\u0438\u0447\u0438\u043d \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e:  <\/p>\n<ul>\n<li>\u0421\u043f\u0440\u0430\u0439\u0442\u044b \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439 \u043d\u0443\u0436\u043d\u044b, \u0430 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u044f \u0442\u043e\u043b\u043a\u043e\u043c \u043d\u0435 \u0443\u043c\u0435\u044e, \u043d\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0443\u043c\u0435\u0435\u0442<\/li>\n<li>\u041e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0435 \u043f\u0438\u043b\u043e\u0442\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0447\u0435\u0440\u0442\u0435\u0436\u0438 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439, \u0431\u0435\u0437 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435<\/li>\n<li>\u042f \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u0438\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043b\u0430\u044e\u0442 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0438, \u0438 \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0441\u044f \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0443\u0440\u043e\u0432\u043d\u044e<\/li>\n<li>\u041d\u0443 \u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e<\/li>\n<\/ul>\n<p>  \u0427\u0442\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440:  <\/p>\n<ul>\n<li>\u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 JSON \u0434\u0430\u043d\u043d\u044b\u0445(\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 vessel specification, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u0430\u043b\u0435\u0435) \u0433\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043a\u043e\u0440\u0430\u0431\u043b\u044f, \u043d\u0430 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u043c \u0444\u043e\u043d\u0435, \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0443 \u0432 \u0438\u0433\u0440\u0443<\/li>\n<li>\u0413\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c, \u0437\u0430\u043b\u0438\u0442\u044c, \u0438 \u0437\u0430\u043f\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445<\/li>\n<li>\u0412\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043a\u043e\u0440\u0430\u0431\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u044b, \u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u043c \u0437\u0430 \u0434\u0430\u0440\u0432\u0438\u043d\u0441\u043a\u0438\u0439 \u043f\u0435\u043f\u0435\u043b\u0430\u0446 \u0441\u043e\u0440\u0443\u0434\u0438\u043b\u0438 =)<\/li>\n<\/ul>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u043e \u044d\u0442\u043e\u0439 vessel specification, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0438\u0434\u043d\u0430 \u043d\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0435 \u0441\u0432\u0435\u0440\u0445\u0443. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043d\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u0440\u0430\u0431\u043b\u0438 \u0438 \u0438\u0437 \u0447\u0435\u0433\u043e. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u044d\u043a\u0441\u0442\u043e\u0440\u0438 \u044d\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0413\u041e\u0421\u0422&#8217;\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u043c\u0438. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u044f \u044d\u0442\u043e \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0431\u0449\u0438\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 (\u043a\u043e\u0433\u0434\u0430 \u043f\u043e \u043a\u043b\u0435\u0442\u043e\u0447\u043a\u0430\u043c \u0440\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u043a\u043e\u0440\u0430\u0431\u043b\u0438). \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u043e\u0431\u0449\u0438\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043c\u0430\u043b\u043e.<br \/>  \u0418\u0437 \u0447\u0435\u0433\u043e \u0436\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u043e\u0440\u0430\u0431\u043b\u0438 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u00ab\u0413\u041e\u0421\u0422&#8217;\u0443\u00bb? \u041e\u0441\u043d\u043e\u0432\u043e\u0439 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u0438\u043d\u0438\u0438(line), \u043b\u0438\u043d\u0438\u044f \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u0435\u043a\u0446\u0438\u0439(section), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443. \u0421\u0435\u043a\u0446\u0438\u044f \u2014 \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043b\u044e\u0441 \u0434\u0432\u0430 \u0431\u043b\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043a\u0440\u0435\u043f\u043b\u044f\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0446\u0438\u0439 \u0432 \u043b\u0438\u043d\u0438\u044e. \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u043c, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u0435\u0451 \u043c\u0430\u0441\u0441\u0443, \u0438\u043b\u0438 \u0433\u0440\u0443\u0437\u043e\u0432\u044b\u043c \u0431\u043b\u043e\u043a\u043e\u043c, \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u043e\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u043c, \u0438\u043b\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. <br \/>  \u0414\u0443\u043c\u0430\u044e \u044f \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0436\u0435 \u043e\u043d \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0442 \u044d\u0442\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u044b. <\/p>\n<h4>\u0428\u0430\u0433 0 \u2014 \u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0445\u043e\u043b\u0441\u0442\u044b \u0438 \u043a\u0440\u0430\u0441\u043a\u0438<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u0440\u0438 \u043a\u0430\u043d\u0432\u044b, #backCanvs, #mainCanvas \u0438 #topCanvas.<\/p>\n<pre><code class=\"html\">&lt;canvas id=&quot;backCanvas&quot;  width=&quot;640&quot; height=&quot;480&quot;&gt;&lt;\/canvas&gt;\t &lt;canvas id=&quot;mainCanvas&quot;  width=&quot;640&quot; height=&quot;480&quot;&gt;&lt;\/canvas&gt;\t &lt;canvas id=&quot;topCanvas&quot;  width=&quot;640&quot; height=&quot;480&quot;&gt;&lt;\/canvas&gt; <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0432 \u043d\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043e\u0447\u0435\u043d\u044c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0440\u044e\u043a, \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u043d\u0432\u044b, \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0435\u0451 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b. <\/p>\n<pre><code class=\"javascript\">\/\/\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043b\u043e\u0435\u0432 var canvasSize = { width: Math.floor(window.innerWidth*3.5),                    height: Math.floor(window.innerHeight*3.5) }; var cssSize = { width: window.innerWidth, height: window.innerHeight };  shipGen.layerInit([&quot;#backCanvas&quot;, &quot;#mainCanvas&quot;, &quot;#topCanvas&quot;], canvasSize, cssSize); \/\/\u0421\u0430\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f shipGen.layerInit = function(canvases, canvasSize, cssSize) { \tshipGen.config.canvasSize = canvasSize; \tshipGen.config.cssSize = cssSize;     \/\/\u0415\u0441\u043b\u0438 \u0441\u043b\u043e\u0438 \u0435\u0441\u0442\u044c, \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u0438\u0445 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \tfor(var i in shipGen.layers) { \t\tshipGen.layers[i].clearRect(0, 0, canvasSize.width, canvasSize.height) \t} \tshipGen.layers = []; \tfor(var i in canvases) { \t\tshipGen.layers.push($(canvases[i]).attr(&quot;width&quot;, canvasSize.width) \t\t                .attr(&quot;height&quot;, canvasSize.height) \t\t                .css(&quot;width&quot;, cssSize.width) \t\t                .css(&quot;height&quot;, cssSize.height).get(0).getContext(&quot;2d&quot;)); \t} } <\/code><\/pre>\n<h4>\u0428\u0430\u0433 0.5 \u2014 \u0413\u043e\u0442\u043e\u0432\u0438\u043c \u043a\u0438\u0441\u0442\u043e\u0447\u043a\u0438<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0435, \u0438 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u2014 \u043a\u043e\u043d\u0444\u0438\u0433\u0438.<br \/>  \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0441\u0430\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u043a\u043e\u0440\u0430\u0431\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 JSON \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f \u0432 Javascript Object, \u043d\u043e \u0435\u0449\u0451 \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0430\u043c\u043e\u0439 \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u043a\u0438:<\/p>\n<pre><code class=\"javascript\">lines: [], \/\/\u0421\u044e\u0434\u0430 \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0435\u043d\u044b\u0439 JSON-\u043a\u043e\u043d\u0444\u0438\u0433 config: { \/\/\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438     factor: 15, \/\/\u041c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435     factorRandLight: 3, \/\/\u041d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043b\u0430\u043c\u043f\u043e\u0447\u0435\u043a     angle: 0, \/\/\u0423\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u044f     canvasSize: {}, \/\/\u0420\u0430\u0437\u043c\u0435\u0440\u044b \u043a\u0430\u043d\u0432\u044b     designName: &quot;&quot;, \/\/\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435     authorName: &quot;&quot; \/\/\u0410\u0432\u0442\u043e\u0440 }, counters: { \/\/\u0420\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0438\u043b\u0438 \u0440\u044f\u0434\u043e\u043c     heightShip: 0, \/\/\u0414\u043b\u0438\u043d\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u044f \thull: 0, \/\/\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0440\u043f\u0443\u0441\u0430 \tlinesCount: 0, \/\/\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u043d\u0438\u0439 \tsectionsCount: 0, \/\/\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0435\u0433\u043e \u0441\u0435\u043a\u0446\u0438\u0439 \ttotalMass: 0, \/\/\u0421\u0443\u043c\u043c\u0430\u0440\u043d\u0430\u044f \u043c\u0430\u0441\u0441\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u044f }, data: { \/\/\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \tengines: [], \tblocks: [], \tpipes: [], \tcargos: [] } <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433 \u043a\u043e\u0440\u0430\u0431\u043b\u044f \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">try {   if(localStorage[&quot;config&quot;]) {     shipGen.lines = JSON.parse(localStorage[&quot;config&quot;]);    }   else {     shipGen.lines = JSON.parse($(&quot;#text&quot;).val());    }    } catch(e) {   alert(&quot;Error parse config&quot;); } <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u043e\u0436\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u043d\u0444\u0433 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u044f. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u0435\u0445 \u043b\u0438\u043d\u0438\u0439(\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u0442\u0440\u0438), \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043b\u0438\u043d\u0438\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043b\u0438\u043d\u0438\u0438, \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0435\u043a\u0446\u0438\u0438, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u043f\u043e \u0434\u0432\u0435 \u043d\u0430 \u043b\u0438\u043d\u0438\u044e.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 10,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     } ]<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<h4>\u0428\u0430\u0433 1 \u2014 \u041f\u0438\u0448\u0435\u043c \u0437\u0432\u0435\u0437\u0434\u044b \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0445\u043e\u043b\u0441\u0442\u0435<\/h4>\n<p>  \u041d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0432\u0435\u0437\u0434\u044b, \u043d\u043e \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0442\u0443\u043c\u0430\u043d\u043d\u043e\u0441\u0442\u044c. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438:<\/p>\n<pre><code class=\"javascript\">shipGen.render.nebula(Math.random(), canvasSize.width, canvasSize.height); shipGen.render.stars(Math.random(), canvasSize.width, canvasSize.height); <\/code><\/pre>\n<p>  \u041d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043a\u0443\u0441\u043a\u0438 \u043a\u043e\u0434\u0430 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u043e\u043d\u0430, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u043a\u043e\u0434\u0435, \u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 \u00ab\u043a\u043e\u0440\u0430\u0431\u043b\u0438\u00bb, \u0432\u043e\u0442 \u043a \u043d\u0438\u043c \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c.<br \/>  \u041d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8bc\/8d7\/616\/8bc8d761684eff372c2eebd17a0792e3.png\"\/><\/p>\n<h4>\u0428\u0430\u0433 2 \u2014 \u041f\u0438\u0448\u0435\u043c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0445\u043e\u043b\u0441\u0442\u0435<\/h4>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043b\u0438\u043d\u0438\u0438, \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e, \u0438 \u0431\u043b\u043e\u043a\u0438 \u0441\u043a\u0440\u0435\u043f\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u0435\u043a\u0446\u0438\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a, \u0432\u0441\u0451 \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438:<\/p>\n<pre><code class=\"javascript\">shipGen.process = function() { \t\/\/\u0411\u0435\u0440\u0435\u043c #mainCanvas \tvar ctx = shipGen.layers[1]; \t\/\/\u0421\u043c\u0435\u0449\u0430\u0435\u043c \u0438 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \tctx.translate(shipGen.config.canvasSize.width\/2, shipGen.config.canvasSize.height\/2); \tctx.rotate(shipGen.config.angle); \t\/\/\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043b\u0438\u043d\u0438\u0439 \tshipGen.counters.linesCount = shipGen.lines.length; \t\/\/\u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u043e\u0442\u043c\u0435\u0440\u044f\u044e\u0449\u0430\u044f \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u0441\u043c\u0435\u0441\u0442\u0438\u043b\u0438\u0441\u044c \u043f\u043e X \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0435 \t\/\/\u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043b\u0438\u043d\u0438\u0439 \tvar lenShiftX = 0; \tfor (var i = 0; i &lt; shipGen.counters.linesCount; i++) {  \t\tctx.save(); \t\t\/\/\u0411\u0435\u0440\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0441\u0435\u043a\u0446\u0438\u044f\u0445 \t\tvar sections = shipGen.lines[i].sections; \t\t\/\/\u041a\u0440\u0443\u0442\u0438\u043c \u0446\u0438\u043a\u043b \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0441\u0435\u043a\u0446\u0438\u0438 \t\tfor(var component in sections) { \t\t\t\/\/\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0446\u0438\u0439 \u0432 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439 \t  \t\tshipGen.counters.sectionsCount += 1   \t  \t\t\/\/\u0411\u0435\u0440\u0435\u043c \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043c\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \t  \t\tshipGen.selectComponent(sections[component], {lenShiftX: lenShiftX, blockTopW: sections[component].blockW2, blockBottomW: sections[component].blockW1 } ); \t\t} \t\tctx.restore(); \t\tlenShiftX += shipGen.lines[i].nextLineX; \t\t\/\/\u0421\u043c\u0435\u0449\u0430\u0435\u043c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u0432\u043f\u0440\u0430\u0432\u043e, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0440\u044f\u0434\u043e\u043c \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u043d\u0438\u044e \t\tctx.translate(shipGen.lines[i].nextLineX, 0); \t} }<\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u0435\u0439 selectComponent \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u043b\u043e\u043a, \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043f\u043e\u0442\u043e\u043c \u0440\u0438\u0441\u0443\u0435\u043c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a:<\/p>\n<pre><code class=\"javascript\">... shipGen.block(obj.blockW1, obj.blockH1); ... shipGen.components[obj.name](obj); ... shipGen.block(obj.blockW1, obj.blockH1); ... <\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 moveTo\/LineTo\/rect\/fill\/stroke. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0430\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u043d\u0443\u0436\u043d\u044b\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c. \u0412\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432:<br \/>  Pipe&#8217;\u044b \u0438 \u0431\u043b\u043e\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/395\/052\/a8c\/395052a8c7bf4d1b8147bfb40bf46a68.png\"\/><\/p>\n<p>  \u0414\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/d58\/427\/39b\/d5842739bcfd4eebbd01b93624e2b280.png\"\/><\/p>\n<p>  \u0413\u0440\u0443\u0437\u043e\u0432\u044b\u0435 \u0431\u043b\u043e\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/c01\/35a\/5bc\/c0135a5bcd5443cd97073bbd78945859.png\"\/><\/p>\n<p>  \u041d\u0443 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e \u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u043f\u043e\u043a\u0430 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438 \u0442\u0440\u0435\u0445.<br \/>  \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u043e\u0440\u0430\u0431\u043b\u044f, \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 10,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 10,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     } ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/f92\/7db\/d96\/f927dbd96c154417b22f7a8d83c59c2d.png\"\/><\/p>\n<h4>\u0428\u0430\u0433 3 \u2014 \u041f\u0438\u0448\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0445\u043e\u043b\u0441\u0442\u0435<\/h4>\n<p>  \u041e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0442\u0430\u043f, \u043d\u0443\u0436\u043d\u043e \u043e\u0444\u043e\u0440\u043e\u043c\u0438\u0442\u044c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043a\u043e\u0440\u0430\u0431\u043b\u044f \u0432 \u0432\u0438\u0434\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430. \u041d\u0443 \u0445\u043e\u0442\u044f \u0431\u044b \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e.<br \/>  \u0418 \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0448\u0440\u0438\u0444\u0442\u0430, \u0438 \u0441\u043c\u0435\u0449\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0432\u043d\u0438\u0437 \u043f\u043e Y \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0435. \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u0430\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043e\u0431 \u0430\u0432\u0442\u043e\u0440\u0435, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435. \u041a\u0441\u0442\u0430\u0442\u0438 \u043e\u0431 \u0430\u0432\u0442\u043e\u0440\u0435 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u043e\u043a\u0430 \u0438\u0445 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u043c\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0442\u0430\u0449\u0435\u043d\u044b \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0438\u0433\u0440\u043e\u0439, \u0430 \u043f\u043e\u043a\u0430 \u043f\u0443\u0441\u0442\u044c \u0431\u0443\u0434\u0443\u0442 Unnamed \u0438 Unknown.   <\/p>\n<pre><code class=\"javascript\">\/\/\u0412\u044b\u0437\u043e\u0432 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 shipGen.render.text(); \/\/\u0421\u0430\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f shipGen.render.text = function() {     var ctx = shipGen.layers[2];     \/\/\u041d\u043e\u043c\u0435\u0440 \u0434\u0438\u0437\u0430\u0439\u043d\u0430     ctx.fillStyle = &quot;#fff&quot;;     ctx.strokeStyle = &quot;#fff&quot;;     ctx.font = &quot;130pt Arial&quot;;     ctx.fillText(&quot;Vessel Design &quot; + shipGen.config.number, 220, 220);     \/\/\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0430     ctx.font = &quot;50pt Arial&quot;;     ctx.fillText(&quot;Vessel specification of Tranquilla Community VSC-V3&quot;, 250, 320);           ctx.font = &quot;40pt Arial&quot;;     \/\/\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u0438\u0437\u0430\u0439\u043d\u0430     ctx.fillText(&quot;Design name: &quot; + shipGen.config.designName, 250, 420);      \/\/\u0418\u043c\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u0434\u0438\u0437\u0430\u0439\u043d\u0430     ctx.fillText(&quot;Author name: &quot; + shipGen.config.authorName, 250, 520);      \/\/\u0413\u0434\u0435 \u043c\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e\u0442 \u0434\u0438\u0437\u0430\u0439\u043d     ctx.fillText(&quot;Place: Tranq One IV Station 41 (1020; 1210)&quot;, 250, 620);       ctx.font = &quot;35pt Arial&quot;;     \/\/\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438     ctx.fillText(&quot;Mass: &quot; + shipGen.counters.totalMass, 250, 750);      ctx.fillText(&quot;Hull: &quot; + shipGen.counters.hull, 250, 800);      ctx.fillText(&quot;Lines count: &quot; + shipGen.counters.linesCount , 250, 850);      ctx.fillText(&quot;Sections count: &quot; + shipGen.counters.sectionsCount, 250, 900);      ctx.fillText(&quot;Block count: &quot; + shipGen.data.blocks.length, 250, 950);      ctx.fillText(&quot;Pipe count: &quot; + shipGen.data.pipes.length, 250, 1000);      var lineY = 1150;     \/\/\u0425\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432     for(var i in shipGen.data) {       if(i == &quot;blocks&quot; || i == &quot;pipes&quot;) continue;       ctx.fillText(i.toString() + &quot;:&quot;, 250, lineY - 50);        for (var v in shipGen.data[i]) {         ctx.fillText(i.toString() + &quot;: &quot; + JSON.stringify(shipGen.data[i][v], &quot;&quot;, 1).replace(\/\\&quot;\/g, ''), 250, lineY);          lineY += 50;       }       lineY+=100;     } } <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u0432\u044b\u0448\u0435, \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[   {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 30,                 &quot;blockH2&quot;: 40,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 90,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 30,                 &quot;blockH2&quot;: 40,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 90,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 30,                 &quot;blockH2&quot;: 40,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 90,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },        {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 30,                 &quot;blockH2&quot;: 40,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 90,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     } ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/cbb\/66e\/817\/cbb66e817f0742ed921493ac1408ab16.png\"\/><\/p>\n<h4>\u0428\u0430\u0433 4 \u2014 \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u043a\u0443<\/h4>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0442\u0430\u043f, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c <a href=\"https:\/\/github.com\/eligrey\/FileSaver.js\/\">FileSaver.js<\/a>, \u0438 \u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u043a\u0443, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044f \u0432\u0441\u0435 \u0441\u043b\u043e\u0438.  <\/p>\n<pre><code class=\"javascript\">$(&quot;#save-render&quot;).click(function(){     var canvasMerge = $(&quot;&lt;canvas width='&quot;+canvasSize.width+&quot;' height='&quot;+canvasSize.height+&quot;'&gt;&lt;\/canvas&gt;&quot;).get(0);     var ctxMerge = canvasMerge.getContext(&quot;2d&quot;);      ctxMerge.fillStyle = &quot;#000&quot;;     ctxMerge.fillRect(0, 0, canvasSize.width, canvasSize.height);     ctxMerge.drawImage($(&quot;#backCanvas&quot;).get(0), 0, 0);     ctxMerge.drawImage($(&quot;#mainCanvas&quot;).get(0), 0, 0);     ctxMerge.drawImage($(&quot;#topCanvas&quot;).get(0), 0, 0);     canvasMerge.toBlob(function(blob) {       saveAs(blob, &quot;render.png&quot;);     }); }); <\/code><\/pre>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u043c\u0443\u0447\u0430\u0442\u0441\u044f \u0441 \u0440\u0443\u0447\u043d\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u0430\u0431\u043b\u0438\u043a\u0438, \u044f \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0434\u0435\u043b\u0430\u043b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0440\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u0432\u043d\u0438\u0437\u0443 \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443 \u00abEdit config\u00bb, \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432  \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433, \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0432\u043d\u0438\u0437\u0443 \u00abApply\u00bb.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0440\u043e\u043c\u0430\u0434\u043d\u0430\u044f \u0448\u0435\u0441\u0442\u0438\u043b\u0438\u043d\u0435\u0439\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           },           &quot;4&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             }         }     } ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/f08\/1df\/17a\/f081df17a67c464b9d68d3aa9dc6226d.png\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0440\u0443\u0437\u043e\u0432\u043e\u0439 \u043a\u043e\u0440\u0430\u0431\u043b\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           },           &quot;4&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           },           &quot;4&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             }         }     },         {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           },           &quot;4&quot;: {               &quot;name&quot;: &quot;pipe&quot;,               &quot;blockW1&quot;: 10,               &quot;blockH1&quot;: 10,               &quot;blockW2&quot;: 10,               &quot;blockH2&quot;: 10,               &quot;width&quot;: 8,               &quot;height&quot;: 80,               &quot;color&quot;: {&quot;r&quot;:20,&quot;g&quot;:20,&quot;b&quot;:20},               &quot;shift&quot;: 0,                &quot;step&quot;: 35           }         }     } ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/1d5\/92f\/fa4\/1d592ffa42f6439f9c861347a59f1725.png\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043b\u0435\u0433\u043a\u0438\u0439 \u043a\u043e\u0440\u0430\u0431\u043b\u0438\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[     {         &quot;nextLineX&quot;: 100,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 100,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 10,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 100,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 10,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 8,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     } ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/491\/cf5\/fed\/491cf5fed6524b30bc65c9785853f819.png\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0422\u043e\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u0440\u0430\u0431\u043b\u044c, \u043d\u043e \u043f\u043b\u043e\u0445\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">[     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;cargo&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 35,                 &quot;height&quot;: 35,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 }             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 15,                 &quot;height&quot;: 70,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 15,                 &quot;height&quot;: 70,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 30,                 &quot;blockH2&quot;: 40,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 90,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 15,                 &quot;height&quot;: 70,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 30,                 &quot;blockH2&quot;: 40,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 90,                 &quot;width&quot;: 15,                 &quot;height&quot;: 30,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     },     {         &quot;nextLineX&quot;: 200,         &quot;sections&quot;: {             &quot;0&quot;: {                 &quot;name&quot;: &quot;engine&quot;,                 &quot;blockW1&quot;: 0,                 &quot;blockH1&quot;: 0,                 &quot;blockW2&quot;: 20,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 12,                 &quot;height&quot;: 8,                 &quot;color&quot;: {                     &quot;r&quot;: 25,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;widthLeft&quot;: 8,                 &quot;widthRight&quot;: 8             },             &quot;1&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 50,                 &quot;blockH2&quot;: 60,                 &quot;width&quot;: 15,                 &quot;height&quot;: 70,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;2&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;3&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 10,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 40,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             },             &quot;4&quot;: {                 &quot;name&quot;: &quot;pipe&quot;,                 &quot;blockW1&quot;: 40,                 &quot;blockH1&quot;: 10,                 &quot;blockW2&quot;: 40,                 &quot;blockH2&quot;: 10,                 &quot;width&quot;: 15,                 &quot;height&quot;: 80,                 &quot;color&quot;: {                     &quot;r&quot;: 20,                     &quot;g&quot;: 20,                     &quot;b&quot;: 20                 },                 &quot;shift&quot;: 0,                 &quot;step&quot;: 35             }         }     } ] <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/fcb\/967\/8a4\/fcb9678a46d944d3a7bcca4a0151b901.png\"\/><\/p>\n<p>  \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435: <a href=\"https:\/\/github.com\/MagistrAVSH\/ship-gen\/\">github.com\/MagistrAVSH\/ship-gen\/<\/a><br \/>  \u0414\u0435\u043c\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c: <a href=\"http:\/\/magistravsh.github.io\/ship-gen\/\">magistravsh.github.io\/ship-gen\/<\/a><br \/>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0441 \u0438\u0433\u0440\u043e\u0439, \u0434\u0443\u043c\u0430\u044e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<br \/>  Fly safe!    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/210622\/\"> http:\/\/habrahabr.ru\/post\/210622\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u043b\u0430\u043d\u0435\u0442\u044b, \u0425\u0430\u0431\u0440.<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043f\u0440\u044f\u043c\u043e \u0434\u0435\u043d\u044c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0431\u0438\u0442\u0432\u0443 \u0432 EVE Online, \u043d\u0443 \u0430 \u044f \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0434\u0432\u0443\u0445\u043c\u0435\u0440\u043d\u0443\u044e \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u0433\u0440\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0430 \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u0440\u0430\u0431\u043b\u0435\u0439. \u041f\u0443\u0441\u0442\u044c \u043a\u043e\u0440\u0430\u0431\u043b\u0438 \u0438 \u043d\u0435 \u0442\u0430\u043a\u0438\u0435 \u0448\u0438\u043a\u0430\u0440\u043d\u044b\u0435 \u043a\u0430\u043a \u0432 EVE, \u0437\u0430\u0442\u043e \u0441\u0432\u043e\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/448\/69e\/9a3\/44869e9a3875c87c74891bcad6545d0b.png\"\/><\/p>\n<p>  \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u043d\u0434\u0435\u0440 \u043d\u0430 \u043a\u0430\u043d\u0432\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/p>\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-210622","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210622","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=210622"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210622\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}