svnno****@sourc*****
svnno****@sourc*****
2011年 6月 17日 (金) 22:50:34 JST
Revision: 2775 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2775 Author: dhrname Date: 2011-06-17 22:50:34 +0900 (Fri, 17 Jun 2011) Log Message: ----------- Modified Paths: -------------- branches/08x/080/org/w3c/dom/svg.js Modified: branches/08x/080/org/w3c/dom/svg.js =================================================================== --- branches/08x/080/org/w3c/dom/svg.js 2011-06-17 13:48:21 UTC (rev 2774) +++ branches/08x/080/org/w3c/dom/svg.js 2011-06-17 13:50:34 UTC (rev 2775) @@ -5616,11 +5616,16 @@ di = d / n; //keyTimesがなければ均等に時間を配分しておく ti = ii / n; } - var fc = _tar._valueList[ii].rgbColor, tc = _tar._valueList[ii+1].rgbColor, durd = (tg-ti*d) / di, num = CSSPrimitiveValue.CSS_NUMBER; - var fr = fc.red.getFloatValue(num), fg = fc.green.getFloatValue(num), fb = fc.blue.getFloatValue(num); - var r = fr + (tc.red.getFloatValue(num) - fr) * durd; - var g = fg + (tc.green.getFloatValue(num) - fg) * durd; - var b = fb + (tc.blue.getFloatValue(num) - fb) * durd; + var fc = _tar._valueList[ii].rgbColor, + tc = _tar._valueList[ii+1].rgbColor, + durd = (tg-ti*d) / di, + num = CSSPrimitiveValue.CSS_NUMBER, + fr = fc.red.getFloatValue(num), + fg = fc.green.getFloatValue(num), + fb = fc.blue.getFloatValue(num), + r = fr + (tc.red.getFloatValue(num) - fr) * durd, + g = fg + (tc.green.getFloatValue(num) - fg) * durd, + b = fb + (tc.blue.getFloatValue(num) - fb) * durd; style.setProperty(attrName, "rgb(" +Math.ceil(r)+ "," +Math.ceil(g)+ "," +Math.ceil(b)+ ")", null); _tar = d = n = tg = fc = tc = fr = fg = fb = num = r = g = b = null; }