{"id":2702,"date":"2020-04-18T08:49:19","date_gmt":"2020-04-17T23:49:19","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2702"},"modified":"2020-04-18T08:49:22","modified_gmt":"2020-04-17T23:49:22","slug":"%e3%80%90c%e3%80%91%e3%80%90altseed%e3%80%91%e3%80%90%e6%95%b0%e7%8b%ac%e3%80%91%e3%83%91%e3%83%ac%e3%83%83%e3%83%88%e3%81%ae%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2702","title":{"rendered":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u4f5c\u6210"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"JANYYMRDWr\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=2688\">\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u8868\u793a\u3001\u975e\u8868\u793a<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u8868\u793a\u3001\u975e\u8868\u793a&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=2688&#038;embed=true#?secret=CPzF4yj6Dn#?secret=JANYYMRDWr\" data-secret=\"JANYYMRDWr\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/takishita2nd\/sudokuGUI\">https:\/\/github.com\/takishita2nd\/sudokuGUI<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30ec\u30c3\u30c8\u306e\u4e2d\u8eab\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u30d1\u30ec\u30c3\u30c8\u306b\u8868\u793a\u3059\u308b\u6570\u5b57\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u3001\u3059\u3067\u306b\u4f5c\u6210\u3057\u3066\u3044\u308bSquareObject\u3092\u5229\u7528\u3057\u307e\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3092\u3053\u306e\u307e\u307e\u4f7f\u7528\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u7d99\u627f\u3057\u3066\u6a5f\u80fd\u62e1\u5f35\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    class SquareObject\n    {\n        protected int _x;\n        protected int _y;\n        protected int _row;\n        protected int _col;\n        private int _value;\n        protected asd.TextureObject2D _backTexture;\n        protected asd.TextObject2D _valueText;\n        protected const int offsetX = 10;\n        protected const int offsetY = 10;\n        protected const int fontOffsetX = 19;\n        protected const int fontOffsetY = 9;\n        protected const int width = 64;\n        protected const int height = 64;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">private\u304b\u3089protected\u306b\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3046\u3057\u306a\u3051\u308c\u3070\u62e1\u5f35\u5148\u3067\u5909\u6570\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    class PaletteSquareObject : SquareObject\n    {\n\n        public PaletteSquareObject(int row, int col) : base(row, col)\n        {\n        }\n\n        public void setPosition(asd.Vector2DF pos)\n        {\n            _x = _row * width + (int)pos.X;\n            _y = _col * height + (int)pos.Y;\n\n            _backTexture.Position = new asd.Vector2DF(_x, _y);\n            _valueText.Position = new asd.Vector2DF(_x + fontOffsetX, _y + fontOffsetY);\n        }\n    }\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30ec\u30c3\u30c8\u306e\u6570\u5b57\u306f\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u3088\u3063\u3066\u30b3\u30ed\u30b3\u30ed\u5909\u308f\u308b\u306e\u3067\u3001\u81ea\u7531\u306b\u8868\u793a\u4f4d\u7f6e\u3092\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30af\u30e9\u30b9\u3092Palette\u30af\u30e9\u30b9\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    class Palette\n    {\n        private asd.Vector2DF palettePosition;\n        private const int width = 192;\n        private const int height = 256;\n        private asd.TextureObject2D _texture;\n        PaletteSquareObject&#91;,] paletteSquareObjects = new PaletteSquareObject&#91;3, 3];\n\n        public Palette()\n        {\n            _texture = new asd.TextureObject2D();\n            for(int row = 0; row &lt; 3; row++)\n            {\n                for(int col = 0; col &lt; 3; col++)\n                {\n                    paletteSquareObjects&#91;row, col] = new PaletteSquareObject(row, col);\n                }\n            }\n        }\n\n        public void setEngine()\n        {\n            asd.Engine.AddObject2D(_texture);\n            for (int row = 0; row &lt; 3; row++)\n            {\n                for (int col = 0; col &lt; 3; col++)\n                {\n                    asd.Engine.AddObject2D(paletteSquareObjects&#91;row, col].getBackTexture());\n                    asd.Engine.AddObject2D(paletteSquareObjects&#91;row, col].getTextObject());\n                }\n            }\n        }\n\n        public void Show(asd.Vector2DF pos)\n        {\n            palettePosition = new asd.Vector2DF(pos.X, pos.Y - 64);\n            _texture.Position = palettePosition;\n            _texture.Texture = Resource.getPalette();\n            int value = 1;\n            for (int row = 0; row &lt; 3; row++)\n            {\n                for (int col = 0; col &lt; 3; col++)\n                {\n                    paletteSquareObjects&#91;row, col].setPosition(pos);\n                    paletteSquareObjects&#91;row, col].setValue(value);\n                    value++;\n                }\n            }\n        }\n\n        public void Hide()\n        {\n            _texture.Texture = null;\n            for (int row = 0; row &lt; 3; row++)\n            {\n                for (int col = 0; col &lt; 3; col++)\n                {\n                    paletteSquareObjects&#91;row, col].setValue(0);\n                }\n            }\n        }\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067PaletteSquareObject\u30923\u00d73\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Show()\u3067PaletteSquareObject\u306e\u5ea7\u6a19\u8a2d\u5b9a\u3068\u3001\u6570\u5024\u8a2d\u5b9a\uff08\u3053\u308c\u3067\u6570\u5b57\u304c\u8868\u793a\u3055\u308c\u308b\uff09\u3001Hide()\u3067\u6570\u5b57\u3092\u6d88\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u3068\u3001Altseed\u30a8\u30f3\u30b8\u30f3\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u51e6\u7406\u3092\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002\u5168\u90e8Palette\u30af\u30e9\u30b9\u306e\u4e2d\u3067\u76f4\u63a5\u8ffd\u52a0\u3057\u305f\u65b9\u304c\u90fd\u5408\u304c\u3044\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u7d50\u679c\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"http:\/\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/20200418083429.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3060\u3093\u3060\u3093\u5f62\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n\n\n\n<a href=\"\/\/blog.with2.net\/link\/?2023426:1010\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/03a6eee54039f74ded0b8f7548b1868f.png?w=474\" title=\"\u30d1\u30bd\u30b3\u30f3\u30e9\u30f3\u30ad\u30f3\u30b0\"><\/a>\n\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 \u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub) https:\/\/github.com\/takishita2nd\/sudokuGUI \u30d1\u30ec\u30c3\u30c8\u306e\u4e2d\u8eab\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u307e\u305a\u3001\u30d1\u30ec\u30c3\u30c8\u306b\u8868\u793a\u3059\u308b\u6570\u5b57\u3067\u3059\u304c\u3001\u3053 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=2702\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u4f5c\u6210<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306e\u4f5c\u6210\n#TechCommit\n","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[174,3],"tags":[184,137,175],"class_list":["post-2702","post","type-post","status-publish","format-standard","hentry","category-c","category-3","tag-altseed","tag-c","tag-175"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-HA","jetpack-related-posts":[{"id":2708,"url":"https:\/\/taki-lab.site\/bocci\/?p=2708","url_meta":{"origin":2702,"position":0},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u306b\u00d7\u3092\u8ffd\u52a0\u3002","author":"taki","date":"2020\u5e744\u670819\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2702 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2715,"url":"https:\/\/taki-lab.site\/bocci\/?p=2715","url_meta":{"origin":2702,"position":1},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30d1\u30ec\u30c3\u30c8\u304b\u3089\u6570\u5b57\u3092\u5165\u529b\u3059\u308b","author":"taki","date":"2020\u5e744\u670821\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2708 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2719,"url":"https:\/\/taki-lab.site\/bocci\/?p=2719","url_meta":{"origin":2702,"position":2},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u30dc\u30bf\u30f3\u4f5c\u6210","author":"taki","date":"2020\u5e744\u670822\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2715 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2869,"url":"https:\/\/taki-lab.site\/bocci\/?p=2869","url_meta":{"origin":2702,"position":3},"title":"\u3010C#\u3011\u3010\u30d4\u30af\u30ed\u30b9\u3011\u3010ALTSEED\u3011\u6570\u5b57\u5165\u529b\u30d1\u30ec\u30c3\u30c8\u306e\u4f5c\u6210","author":"taki","date":"2020\u5e745\u67088\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2861 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/palette.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2741,"url":"https:\/\/taki-lab.site\/bocci\/?p=2741","url_meta":{"origin":2702,"position":4},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u30119\u00d79\u30de\u30b9\u306e\u5916\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u30d1\u30ec\u30c3\u30c8\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u52d5\u4f5c\u306e\u4fee\u6b63","author":"taki","date":"2020\u5e744\u670826\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2737 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/04\/136745a6f14b13c4ec28aa8b8abf449f.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2731,"url":"https:\/\/taki-lab.site\/bocci\/?p=2731","url_meta":{"origin":2702,"position":5},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u89e3\u6790\u51e6\u7406\u3092\u5b9f\u884c","author":"taki","date":"2020\u5e744\u670823\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2719 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2702"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2702\/revisions"}],"predecessor-version":[{"id":2704,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2702\/revisions\/2704"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}