Closed SLyHuy closed 10 years ago
The Rect have back color, not red color in v5.1.0
new Kinetic.Shape({ drawFunc: function(context) { var i = 0; var j = 0; context.rect(0 + i * 10 * 5, 0 + j * 10 * 5, 10 * 5, 10 * 5); context.fillStyle = 'red'; context.fill(); }, x: 0, y: 0 });
Can you have any idea to quick fix this issue?
context argument is not native canvas context. It is KineticJS wrapper. Use: context.setAttr('fillStyle', 'red');
context
context.setAttr('fillStyle', 'red');
Thanks, Lavrton.
The Rect have back color, not red color in v5.1.0
Can you have any idea to quick fix this issue?