From 7407aef343ccb942a572ded6666f3740f9d17495 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Wed, 30 Jul 2008 05:38:34 +0000 Subject: [PATCH] Refixed TOME. --- engine/kagecd.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/engine/kagecd.js b/engine/kagecd.js index 9e19cdd..d9f2e93 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.8, y4 + kage.kMinWidthT * 0.8); + poly.push(x4 - kage.kMinWidthT * 0.7, y4 + kage.kMinWidthT * 0.7); poly.push(x4, y4 + kage.kMinWidthT); - poly.push(x4 + kage.kMinWidthT * 0.8, y4 + kage.kMinWidthT * 0.8); + poly.push(x4 + kage.kMinWidthT * 0.7, y4 + kage.kMinWidthT * 0.7); 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.8, y4 - kage.kMinWidthT * 0.8); + poly.push(x4 + kage.kMinWidthT * 0.7, y4 - kage.kMinWidthT * 0.7); poly.push(x4 + kage.kMinWidthT, y4); - poly.push(x4 + kage.kMinWidthT * 0.8, y4 + kage.kMinWidthT * 0.8); + poly.push(x4 + kage.kMinWidthT * 0.7, y4 + kage.kMinWidthT * 0.7); 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.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 * 0.7 * v + Math.sin(rad) * kage.kMinWidthT * 0.7 * v, + y4 + Math.sin(rad) * kage.kMinWidthT * 0.7 * v - Math.cos(rad) * kage.kMinWidthT * 0.7 * 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.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 * 0.7 * v - Math.sin(rad) * kage.kMinWidthT * 0.7 * v, + y4 + Math.sin(rad) * kage.kMinWidthT * 0.7 * v + Math.cos(rad) * kage.kMinWidthT * 0.7 * 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.8, y3 + kage.kMinWidthT * 0.8); + poly.push(x3 - kage.kMinWidthT * 0.7, y3 + kage.kMinWidthT * 0.7); poly.push(x3, y3 + kage.kMinWidthT); - poly.push(x3 + kage.kMinWidthT * 0.8, y3 + kage.kMinWidthT * 0.8); + poly.push(x3 + kage.kMinWidthT * 0.7, y3 + kage.kMinWidthT * 0.7); 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.8, y3 - kage.kMinWidthT * 0.8); + poly.push(x3 + kage.kMinWidthT * 0.7, y3 - kage.kMinWidthT * 0.7); poly.push(x3 + kage.kMinWidthT, y3); - poly.push(x3 + kage.kMinWidthT * 0.8, y3 + kage.kMinWidthT * 0.8); + poly.push(x3 + kage.kMinWidthT * 0.7, y3 + kage.kMinWidthT * 0.7); 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.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 * 0.7 * v + Math.sin(rad) * kage.kMinWidthT * 0.7 * v, + y3 + Math.sin(rad) * kage.kMinWidthT * 0.7 * v - Math.cos(rad) * kage.kMinWidthT * 0.7 * 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.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 * 0.7 * v - Math.sin(rad) * kage.kMinWidthT * 0.7 * v, + y3 + Math.sin(rad) * kage.kMinWidthT * 0.7 * v + Math.cos(rad) * kage.kMinWidthT * 0.7 * v); poly.push(x3 - Math.sin(rad) * kage.kMinWidthT * v, y3 + Math.cos(rad) * kage.kMinWidthT * v); polygons.push(poly); } -- 1.7.10.4