Changeset 14138 for trunk/FACT++/www/smartfact
- Timestamp:
- 06/09/12 21:54:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r14137 r14138 1119 1119 return HLStoRGB(0); 1120 1120 1121 var hue = (col-1)/127;1121 var hue = col/126; 1122 1122 return HLStoRGB(hue); 1123 1123 } … … 1367 1367 1368 1368 ctx.beginPath(); 1369 ctx.moveTo(ml, ch-mb- (data[j].charCodeAt(0)-1)/126*h);1369 ctx.moveTo(ml, ch-mb-data[j].charCodeAt(0)/126*h); 1370 1370 for (var i=1; i<data[j].length; i++) 1371 ctx.lineTo(ml+w/(data[j].length-1)*i, ch-mb- (data[j].charCodeAt(i)-1)/126*h);1371 ctx.lineTo(ml+w/(data[j].length-1)*i, ch-mb-data[j].charCodeAt(i)/126*h); 1372 1372 1373 1373 // --- finalize data --- … … 1523 1523 ctx.clearRect(0, 0, canv.width, canv.height); 1524 1524 1525 var data = result.split('\ 0');1525 var data = result.split('\x7f'); 1526 1526 if (data.length<2) 1527 1527 return;
Note:
See TracChangeset
for help on using the changeset viewer.