{"id":2343,"date":"2021-02-20T21:42:51","date_gmt":"2021-02-20T12:42:51","guid":{"rendered":"https:\/\/mattyan.net\/blog\/?p=2343"},"modified":"2021-02-20T21:42:51","modified_gmt":"2021-02-20T12:42:51","slug":"aviutl%e3%81%a7%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e5%88%b6%e5%be%a1%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/mattyan.net\/blog\/?p=2343","title":{"rendered":"aviutl\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u5236\u5fa1\u3092\u8a66\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p><a href=\"http:\/\/spring-fragrance.mints.ne.jp\/aviutl\/\">aviutl<\/a>\u306f<a href=\"https:\/\/aviutlscript.wiki.fc2.com\/\">lua\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u52d5\u304f<\/a>\u3068\u3044\u3046\u3053\u3068\u3092(\u4eca\u66f4)\u77e5\u3063\u305f\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\n<!--more--><\/p>\n<pre class=\"lang:lua\">--dialog:\u99c5\u540d,station_name=\"\";\u99c5\u540d(\u82f1\u8a9e),station_name_en=\"\";\u99c5\u30ca\u30f3\u30d0\u30fc,station_no=0;\u5e45,width=350;\nlocal height = 70;\nlocal left_offset = 140;\nlocal text_x = width - 250;\n-- \u80cc\u666f(\u7d2b)\nobj.setoption(\"drawtarget\",\"tempbuffer\", width * 2, height * 2);\nobj.load(\"figure\", \"\u56db\u89d2\u5f62\", 0x151380, 1);\nobj.drawpoly(\n    -width, -height, 0,\n    -width, height, 0,\n    width, height, 0,\n    width, -height, 0\n);\n-- \u80cc\u666f(\u30aa\u30ec\u30f3\u30b8)\nobj.load(\"figure\", \"\u56db\u89d2\u5f62\", 0xf39800, 1);\nobj.drawpoly(\n    -width + left_offset, -height, 0,\n    -width + left_offset, height, 0,\n    width, height, 0,\n    width, -height, 0\n);\nobj.load(\"figure\", \"\u5186\", 0xf39800, height * 4);\nobj.draw(-width + left_offset, -height + 2);\n-- \u80cc\u666f(\u767d)\nobj.load(\"figure\", \"\u56db\u89d2\u5f62\", 0xffffff, 1);\nobj.drawpoly(\n    -width + left_offset, -height, 0,\n    -width + left_offset, height - 10, 0,\n    width, height - 10, 0,\n    width, -height, 0\n);\nobj.load(\"figure\", \"\u5186\", 0xffffff, height * 3);\nobj.draw(-width + left_offset, -height + 27);\n-- \u99c5\u540d\nobj.setfont(\"\", 60, 0, 0x000000);\nobj.load(\"text\", station_name);\nobj.draw(text_x, -10);\nobj.setfont(\"\", 30, 0, 0x000000);\nobj.load(\"text\", station_name_en);\nobj.draw(text_x, 30);\nobj.setoption(\"drawtarget\",\"framebuffer\")\nobj.load(\"tempbuffer\");\nobj.draw(0, 0);\n-- \u99c5No\nobj.load(\"figure\", \"\u5186\", 0x151380, height * 2 - 40);\nobj.draw(-width + left_offset, -10);\nobj.load(\"figure\", \"\u5186\", 0xffffff, height * 2 - 41);\nobj.draw(-width + left_offset, -10);\nobj.setoption(\"drawtarget\",\"tempbuffer\", width * 2, height * 2);\nlocal cercle_size = height * 2 - 45;\nobj.load(\"figure\", \"\u5186\", 0x151380, cercle_size);\nobj.draw(-width + left_offset, - 10);\nobj.setoption(\"blend\", \"alpha_sub\")\nobj.load(\"figure\", \"\u56db\u89d2\u5f62\", cercle_size - 20);\nobj.draw(-width + left_offset, 65)\nobj.setoption(\"drawtarget\",\"framebuffer\")\nobj.load(\"tempbuffer\");\nobj.draw(0, 0);\nobj.setfont(\"\", 50, 0, 0xffffff);\nobj.load(\"text\", station_no);\nobj.draw(-width + left_offset, -20);<\/pre>\n<p>\u77e9\u5f62\u3084\u5186\u3001\u30c6\u30ad\u30b9\u30c8\u306f<\/p>\n<pre>obj.load<\/pre>\n<p>\u3067\u4f5c\u6210\u3002<br \/>\nWiki\u306b\u3088\u308b\u3068\u3001\u5927\u304d\u306a\u77e9\u5f62\u306f\u305d\u306e\u307e\u307e\u4f5c\u308b\u3093\u3058\u3083\u306a\u304f\u3066<\/p>\n<pre>obj.drawpoly<\/pre>\n<p>\u3067\u62e1\u5927\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3089\u3057\u3044\u306e\u3067\u305d\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3002<br \/>\n\u305d\u306e\u307e\u307e\u63cf\u5199\u3059\u308b\u3068\u5186\u304c\u306f\u307f\u51fa\u3059\u306e\u3067\u3001\u4e00\u65e6<\/p>\n<pre class=\"lang:lua\">obj.setoption(\"drawtarget\",\"tempbuffer\", width * 2, height * 2);<\/pre>\n<p>\u3067\u30b5\u30a4\u30ba\u5236\u9650\u3057\u305f\u30d0\u30c3\u30d5\u30a1\u306b\u63cf\u5199\u3057\u3066\u304b\u3089<\/p>\n<pre class=\"lang:lua\">obj.setoption(\"drawtarget\",\"framebuffer\")\nobj.load(\"tempbuffer\");\nobj.draw(0, 0);\n<\/pre>\n<p>\u3067\u63cf\u5199\u3059\u308b\u3053\u3068\u3067\u3001\u306f\u307f\u51fa\u3057\u305f\u90e8\u5206\u3092\u524a\u9664\u3002\u306a\u3093\u304b\u3082\u3061\u3087\u3063\u3068\u3044\u3044\u624b\u6bb5\u7121\u3044\u304b\u306a\u3002<br \/>\n\u4e00\u65e6\u88cf\u753b\u9762\u3092\u30af\u30ea\u30a2\u3057\u3066\u304b\u3089\u99c5No\u306e\u56f3\u5f62\u3092\u63cf\u5199\u3057\u3066\u6539\u3081\u3066\u8868\u753b\u9762\u306b\u8ee2\u9001\u3002<br \/>\n\u3053\u308c\u3067\u30b7\u30fc\u30b5\u30a4\u30c9\u30e9\u30a4\u30f3\u306e\u99c5\u8868\u793a\u3063\u307d\u304f\u3067\u304d\u305f\u3002<\/p>\n<blockquote class=\"twitter-tweet\">\n<p lang=\"ja\" dir=\"ltr\">aviutl\u306e\u62e1\u5f35\u7de8\u96c6\u3092\u4f7f\u3046\u3068lua\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u66f8\u3051\u308b\u3063\u3066(\u4eca\u66f4)\u77e5\u3063\u305f\u306e\u3067\u8a66\u3057\u66f8\u304d\u3002<\/p>\n<p>2019\u5e74\u8266\u3053\u308c\u30dc\u30a4\u30b9\u7de8\u6210\u306e\u524d\u9762\u5c55\u671b\u3067\u99c5\u540d\u8868\u793a\u3092\u4ed8\u3051\u3066\u307f\u305f\u3002<a href=\"https:\/\/t.co\/tJN7p4N4nV\">https:\/\/t.co\/tJN7p4N4nV<\/a><\/p>\n<p>&mdash; \u307e\u3063\u3061\u3083\u3093 (@mattyan_1117) <a href=\"https:\/\/twitter.com\/mattyan_1117\/status\/1363075933641449472?ref_src=twsrc%5Etfw\">February 20, 2021<\/a><\/p><\/blockquote>\n<p> <script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>\n\u305d\u308c\u306f\u305d\u3046\u3068\u3001wordpres\u306eAPH Prism Highlighter\u3067lua\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u30d7\u30ec\u30d3\u30e5\u30fc\u304c\u898b\u308c\u306a\u3044\u2026\u2026\u6295\u7a3f\u3057\u3066\u304b\u3089\u6709\u52b9\u306b\u3059\u308c\u3070\u898b\u308c\u308b\u304b\u306a?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>aviutl\u306flua\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u52d5\u304f\u3068\u3044\u3046\u3053\u3068\u3092(\u4eca\u66f4)\u77e5\u3063\u305f\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2343","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2343"}],"version-history":[{"count":0,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2343\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}