{"id":117,"date":"2009-11-05T23:03:21","date_gmt":"2009-11-05T15:03:21","guid":{"rendered":"http:\/\/hgc43160.chinaw3.com\/?p=117"},"modified":"2009-11-05T23:03:21","modified_gmt":"2009-11-05T15:03:21","slug":"%e9%ab%98%e9%80%9f%e6%ad%a3%e5%9c%86%e7%bb%98%e5%88%b6%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/www.hyzgame.com\/?p=117","title":{"rendered":"\u9ad8\u901f\u6b63\u5706\u7ed8\u5236\u7a0b\u5e8f"},"content":{"rendered":"<p align=\"center\"><span style=\"font-family: \u6977\u4f53_GB2312; color: #ff0000; font-size: medium;\">\u7a0b\u5e8f\uff1a\u7f57\u5065\u519b<\/span><\/p>\n<hr size=\"1\" \/>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\"> \u7a0b\u5e8f\u4e2d<\/span><span style=\"font-family: Arial; font-size: medium;\">var32<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u8868\u793a\u6709\u7b26\u53f7<\/span><span style=\"font-family: Arial; font-size: medium;\">32<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u4f4d\u6570\uff0c<\/span><span style=\"font-family: Arial; font-size: medium;\">var16<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u8868\u793a\u6709\u7b26\u53f7<\/span><span style=\"font-family: Arial; font-size: medium;\">16<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u4f4d\u6570\u3002<\/span><span style=\"font-family: Arial; font-size: medium;\">x0,y0<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u4e3a\u5706\u5fc3\u5750\u6807\uff0c<\/span><span style=\"font-family: Arial; font-size: medium;\">r<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u4e3a\u534a\u5f84\u3002<\/span><span style=\"font-family: Arial; font-size: medium;\">PutPixel<\/span><span style=\"font-family: \u6977\u4f53_GB2312; font-size: medium;\">\u4e3a\u753b\u70b9\u51fd\u6570\u3002<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"font-family: \u6977\u4f53_GB2312; color: #000000; font-size: medium;\"> \u66fe\u7ecf\u957f\u5e74\u7684\u4f7f\u7528\u8fd9\u6bb5\u7a0b\u5e8f\uff0c\u800c\u672a\u5411\u7f57\u5065\u519b\u5927\u5e08\u8868\u793a\u611f\u8c22\uff0c\u771f\u662f\u611f\u5230\u60ed\u6127\uff01\u5728\u8fd9\u91cc\uff0c\u8bf7\u5404\u4f4d\u4ee3\u8868\u6211\u5411\u4ed6\u8868\u793a\u611f\u8c22\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\">double SIN45=0.707106781186548;<\/span><\/p>\n<pre><span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\">void Circle(var16 x0,var16 y0,uvar16 r)\r\n{\r\n var32 tn;\r\n var16 x,y;\r\n var16 xmax;<\/span><\/pre>\n<pre><span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\"> y=r;x=0;\r\n xmax=var16(r*SIN45);\r\n tn=(1-r*2);<\/span><\/pre>\n<pre><span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\"> while(x&lt;=xmax)\r\n {\r\n  if(tn&gt;=0)\r\n<\/span>  <span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\">{\r\n   tn+=(6+((x-y)&lt;&lt;2));\r\n   y--;\r\n  }\r\n  else\r\n   tn+=((x&lt;&lt;2)+2);<\/span><\/pre>\n<pre><span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\">  PutPixel(x0+y,y0+x);\r\n  PutPixel(x0+x,y0+y);\r\n  PutPixel(x0-x,y0+y);\r\n  PutPixel(x0-y,y0+x);\r\n  PutPixel(x0-y,y0-x);\r\n  PutPixel(x0-x,y0-y);\r\n  PutPixel(x0+x,y0-y);\r\n  PutPixel(x0+y,y0-x);\r\n  x++;\r\n }<\/span><\/pre>\n<pre><span style=\"font-family: \u5b8b\u4f53; color: #000000; font-size: x-small;\"> PutPixel(x0+y,y0+x);\r\n PutPixel(x0+x,y0+y);\r\n PutPixel(x0-x,y0+y);\r\n PutPixel(x0-y,y0+x);\r\n PutPixel(x0-y,y0-x);\r\n PutPixel(x0-x,y0-y);\r\n PutPixel(x0+x,y0-y);\r\n PutPixel(x0+y,y0-x);\r\n}<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7a0b\u5e8f\uff1a\u7f57\u5065\u519b \u7a0b\u5e8f\u4e2dvar32\u8868\u793a\u6709\u7b26\u53f732\u4f4d\u6570\uff0cvar16\u8868\u793a\u6709\u7b26\u53f716\u4f4d\u6570\u3002x0,y0\u4e3a\u5706\u5fc3\u5750\u6807\uff0cr\u4e3a\u534a\u5f84 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-2d"],"_links":{"self":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":1,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":118,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/118"}],"wp:attachment":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}