Hi,
For my c2 project I would like to create a pentagon graph to show the player's stats.
Example: media.eventhubs.com/images/2015/12/24_attributecharts.jpg
This would be builded using multiple coordinates and would be rendered through a custom plugin (or is there an easier way inside the software ?).
Anyway I'm trying to render a shape but my code is executed and nothing is showing inside the canvas.
Here's what I am trying :
var context = document.getElementById('c2canvas').getContext('2d');
context.beginPath();
context.moveTo(387, 256);
context.rect(188, 50, 200, 100);
context.fillStyle = 'yellow';
context.fill();
context.lineWidth = 7;
context.strokeStyle = 'black';
context.stroke();
I tried it inside instanceProto.draw = function(ctx) and inside a window.onload function.
My question is why is the shape not rendering, and if it renders can I manipulate it inside c2?
Thanks,
Nic L
Web programmer - CFORP