From: Koichi KAMICHI Date: Wed, 30 Jul 2008 05:18:42 +0000 (+0000) Subject: Fixed round end (TOME:8). X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223cd34f2748839697f83e9134535363ca76e515;p=chise%2Fkage.git Fixed round end (TOME:8). --- diff --git a/engine/kagecd.js b/engine/kagecd.js index a30ac26..9e19cdd 100755 --- a/engine/kagecd.js +++ b/engine/kagecd.js @@ -250,29 +250,29 @@ function cdDrawBezier(kage, polygons, x1, y1, x2, y2, x3, y3, x4, y4, a1, a2){ if(x3 == x4){ poly = Polygon(); poly.push(x4 - kage.kMinWidthT, y4); - poly.push(x4 - kage.kMinWidthT * 0.6, y4 + kage.kMinWidthT * 0.6); + poly.push(x4 - kage.kMinWidthT * 0.8, y4 + kage.kMinWidthT * 0.8); poly.push(x4, y4 + kage.kMinWidthT); - poly.push(x4 + kage.kMinWidthT * 0.6, y4 + kage.kMinWidthT * 0.6); + poly.push(x4 + kage.kMinWidthT * 0.8, y4 + kage.kMinWidthT * 0.8); poly.push(x4 + kage.kMinWidthT, y4); polygons.push(poly); } else if(y3 == y4){ poly = new Polygon(); poly.push(x4, y4 - kage.kMinWidthT); - poly.push(x4 + kage.kMinWidthT * 0.6, y4 - kage.kMinWidthT * 0.6); + poly.push(x4 + kage.kMinWidthT * 0.8, y4 - kage.kMinWidthT * 0.8); poly.push(x4 + kage.kMinWidthT, y4); - poly.push(x4 + kage.kMinWidthT * 0.6, y4 + kage.kMinWidthT * 0.6); + poly.push(x4 + kage.kMinWidthT * 0.8, y4 + kage.kMinWidthT * 0.8); poly.push(x4, y4 + kage.kMinWidthT); polygons.push(poly); } else{ poly = new Polygon(); poly.push(x4 + Math.sin(rad) * kage.kMinWidthT * v, y4 - Math.cos(rad) * kage.kMinWidthT * v); - poly.push(x4 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v + Math.sin(rad) * kage.kMinWidthT * 0.6 * v, - y4 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v - Math.cos(rad) * kage.kMinWidthT * 0.6 * v); + poly.push(x4 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v + Math.sin(rad) * kage.kMinWidthT * 0.8 * v, + y4 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v - Math.cos(rad) * kage.kMinWidthT * 0.8 * v); poly.push(x4 + Math.cos(rad) * kage.kMinWidthT * v, y4 + Math.sin(rad) * kage.kMinWidthT * v); - poly.push(x4 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v - Math.sin(rad) * kage.kMinWidthT * 0.6 * v, - y4 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v + Math.cos(rad) * kage.kMinWidthT * 0.6 * v); + poly.push(x4 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v - Math.sin(rad) * kage.kMinWidthT * 0.8 * v, + y4 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v + Math.cos(rad) * kage.kMinWidthT * 0.8 * v); poly.push(x4 - Math.sin(rad) * kage.kMinWidthT * v, y4 + Math.cos(rad) * kage.kMinWidthT * v); polygons.push(poly); } @@ -726,29 +726,29 @@ function cdDrawCurve(kage, polygons, x1, y1, x2, y2, x3, y3, a1, a2){ if(x2 == x3){ poly = new Polygon(); poly.push(x3 - kage.kMinWidthT, y3); - poly.push(x3 - kage.kMinWidthT * 0.6, y3 + kage.kMinWidthT * 0.6); + poly.push(x3 - kage.kMinWidthT * 0.8, y3 + kage.kMinWidthT * 0.8); poly.push(x3, y3 + kage.kMinWidthT); - poly.push(x3 + kage.kMinWidthT * 0.6, y3 + kage.kMinWidthT * 0.6); + poly.push(x3 + kage.kMinWidthT * 0.8, y3 + kage.kMinWidthT * 0.8); poly.push(x3 + kage.kMinWidthT, y3); polygons.push(poly); } else if(y2 == y3){ poly = new Polygon(); poly.push(x3, y3 - kage.kMinWidthT); - poly.push(x3 + kage.kMinWidthT * 0.6, y3 - kage.kMinWidthT * 0.6); + poly.push(x3 + kage.kMinWidthT * 0.8, y3 - kage.kMinWidthT * 0.8); poly.push(x3 + kage.kMinWidthT, y3); - poly.push(x3 + kage.kMinWidthT * 0.6, y3 + kage.kMinWidthT * 0.6); + poly.push(x3 + kage.kMinWidthT * 0.8, y3 + kage.kMinWidthT * 0.8); poly.push(x3, y3 + kage.kMinWidthT); polygons.push(poly); } else{ poly = new Polygon(); poly.push(x3 + Math.sin(rad) * kage.kMinWidthT * v, y3 - Math.cos(rad) * kage.kMinWidthT * v); - poly.push(x3 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v + Math.sin(rad) * kage.kMinWidthT * 0.6 * v, - y3 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v - Math.cos(rad) * kage.kMinWidthT * 0.6 * v); + poly.push(x3 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v + Math.sin(rad) * kage.kMinWidthT * 0.8 * v, + y3 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v - Math.cos(rad) * kage.kMinWidthT * 0.8 * v); poly.push(x3 + Math.cos(rad) * kage.kMinWidthT * v, y3 + Math.sin(rad) * kage.kMinWidthT * v); - poly.push(x3 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v - Math.sin(rad) * kage.kMinWidthT * 0.6 * v, - y3 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v + Math.cos(rad) * kage.kMinWidthT * 0.6 * v); + poly.push(x3 + Math.cos(rad) * kage.kMinWidthT * 0.8 * v - Math.sin(rad) * kage.kMinWidthT * 0.8 * v, + y3 + Math.sin(rad) * kage.kMinWidthT * 0.8 * v + Math.cos(rad) * kage.kMinWidthT * 0.8 * v); poly.push(x3 - Math.sin(rad) * kage.kMinWidthT * v, y3 + Math.cos(rad) * kage.kMinWidthT * v); polygons.push(poly); }