你可以发布一个例子吗?
您的动画可能试图以比正确渲染速度更快的速度绘制帧 - 导致重影/模糊。如果你降低帧率,“可怕”会降低吗?
KineticJS、native-Canvas 和 SVG 之间的这些静态形状结果在我看来是一样的。
这是代码和小提琴:http: //jsfiddle.net/m1erickson/pgBv4/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Prototype</title>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.5.1.min.js"></script>
<style>
#container{
border:solid 1px #ccc;
margin-top: 10px;
width:200px;
height:200px;
}
#canvas{ border:1px solid red; }
</style>
<script>
$(function(){
var canvas=document.getElementById("canvas");
var ctx=canvas.getContext("2d");
ctx.beginPath();
ctx.arc(100,100,75,0,Math.PI*2,false);
ctx.closePath();
ctx.fillStyle="red";
ctx.strokeStyle="black";
ctx.lineWidth=2;
ctx.fill();
ctx.stroke();
var stage = new Kinetic.Stage({
container: 'container',
width: 200,
height: 200
});
var layer = new Kinetic.Layer();
stage.add(layer);
var circle = new Kinetic.Circle({
x: stage.getWidth() / 2,
y: stage.getHeight() / 2 + 10,
radius: 75,
fill: 'red',
stroke: 'black',
strokeWidth: 2,
draggable: true
});
layer.add(circle);
layer.draw();
}); // end $(function(){});
</script>
</head>
<body>
<div id="container"></div>
<canvas id="canvas" width=200 height=200></canvas>
<svg width="200" height="200">
<circle x="100" y="100" r="75" fill="red" stroke="black" stroke-width="2" />
</svg>
</body>
</html>