{"id":5666,"date":"2026-11-22T17:15:16","date_gmt":"2026-11-22T08:15:16","guid":{"rendered":"https:\/\/blog2.dypg.jp\/wp\/?p=5666"},"modified":"2026-11-22T17:15:16","modified_gmt":"2026-11-22T08:15:16","slug":"lets-learn-to-code-%e3%80%90%e5%87%ba%e5%b1%8b%e6%95%b7%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e6%95%99%e5%ae%a4%e3%80%91%ef%bc%92%ef%bc%90%ef%bc%92%ef%bc%96%e5%b9%b4-45","status":"publish","type":"post","link":"https:\/\/blog2.dypg.jp\/wp\/?p=5666","title":{"rendered":"Let\u2019s Learn to Code \u3010\u51fa\u5c4b\u6577\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u3011\uff12\uff10\uff12\uff16\u5e74\uff11\uff11\u6708\uff12\uff12\u65e5\u3010\u3064\u304b\u3057\u3093\u6388\u696d\u5831\u544a\u3011"},"content":{"rendered":"<p>\u30de\u30b8\u30c3\u30af\u30cf\u30f3\u30c9\u3092\u30de\u30a6\u30b9\u30dd\u30a4\u30f3\u30bf\u306b\u5411\u304b\u3063\u3066\u52d5\u304b\u3059\u306b\u306f\u3001\u30de\u30a6\u30b9\u306e\u5ea7\u6a19\u3001\u30dd\u30a4\u30f3\u30bf\u307e\u3067\u306e\u8ddd\u96e2\u3001\u305d\u3057\u3066\u79fb\u52d5\u3059\u308b\u65b9\u5411\u3092\u6c7a\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8ddd\u96e2\u30921\u56de\u3042\u305f\u308a\u306e\u79fb\u52d5\u91cf\u3067\u5272\u308b\u3053\u3068\u3067\u3001\u76ee\u7684\u5730\u306b\u5230\u9054\u3059\u308b\u307e\u3067\u306b\u5fc5\u8981\u306a\u79fb\u52d5\u56de\u6570\u3092\u81ea\u52d5\u7684\u306b\u7b97\u51fa\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u56de\u6570\u3092\u57fa\u306b\u3001\u623b\u308b\u52d5\u4f5c\u3082\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>To make the magic hand move toward the mouse pointer, we need to determine the mouse coordinates, the distance to the pointer, and the direction of movement.<br \/>\nBy dividing the distance by the movement step length, we can automatically calbulate the number of steps required to reach the target. Based ib this number, we can also implement the return movement.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.dypg.jp\/\">\u51fa\u5c4b\u6577\u6559\u5ba4\u3000\uff11\uff12<\/a><a href=\"https:\/\/www.dypg.jp\/\">\u6708\uff10\uff15<\/a><a href=\"https:\/\/www.dypg.jp\/\">\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u585a\u53e3\u3055\u3093\u3055\u3093\u30bf\u30a6\u30f3\u6559\u5ba4\u3000\uff11\uff12<\/a><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u6708\uff10\uff16<\/a><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/culture.jeugia.co.jp\/lesson_detail_23-63403.html?PHPSESSID=phacqr0u9ll2mcf7n0m214ose5\">\u3089\u3089\u307d\u30fc\u3068\u7532\u5b50\u5712\u6559\u5ba4\u3000\uff11\uff12\u6708\uff11\uff13\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukasin\/4687348\/\">\u3064\u304b\u3057\u3093\u6559\u5ba4\u3000\uff10\uff11\u6708\uff12\uff14\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/11\/IMG_0144.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5667\" src=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/11\/IMG_0144.jpg\" alt=\"Let\u2019s Learn to Code \u3010\u51fa\u5c4b\u6577\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u3011\uff12\uff10\uff12\uff16\u5e74\uff11\uff11\u6708\uff12\uff12\u65e5\u3010\u3064\u304b\u3057\u3093\u6388\u696d\u5831\u544a\u3011\n\" width=\"400\" height=\"300\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30de\u30b8\u30c3\u30af\u30cf\u30f3\u30c9\u3092\u30de\u30a6\u30b9\u30dd\u30a4\u30f3\u30bf\u306b\u5411\u304b\u3063\u3066\u52d5\u304b\u3059\u306b\u306f\u3001\u30de\u30a6\u30b9\u306e\u5ea7\u6a19\u3001\u30dd\u30a4\u30f3\u30bf\u307e\u3067\u306e\u8ddd\u96e2\u3001\u305d\u3057\u3066\u79fb\u52d5\u3059\u308b\u65b9\u5411\u3092\u6c7a\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u8ddd\u96e2\u30921\u56de\u3042\u305f\u308a\u306e\u79fb\u52d5\u91cf\u3067\u5272\u308b\u3053\u3068\u3067\u3001\u76ee\u7684\u5730\u306b\u5230\u9054\u3059\u308b\u307e\u3067\u306b\u5fc5\u8981\u306a\u79fb\u52d5\u56de\u6570\u3092\u81ea\u52d5\u7684\u306b\u7b97\u51fa\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u56de\u6570\u3092\u57fa\u306b\u3001\u623b\u308b\u52d5\u4f5c\u3082\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002 To make the magic hand move toward the mouse pointer, we need to determine the mouse<\/p>\n","protected":false},"author":1,"featured_media":5667,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,3,67,16,69],"tags":[],"class_list":["post-5666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-73","category-3","category-67","category-16","category-69"],"_links":{"self":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5666"}],"version-history":[{"count":1,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5666\/revisions"}],"predecessor-version":[{"id":5668,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5666\/revisions\/5668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/media\/5667"}],"wp:attachment":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}