From 223cd34f2748839697f83e9134535363ca76e515 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Wed, 30 Jul 2008 05:18:42 +0000 Subject: [PATCH] Fixed round end (TOME:8). --- engine/kagecd.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) 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); } -- 1.7.10.4