For my c2 project I would like to create a pentagon graph to show the player's stats.
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.rect(188, 50, 200, 100);
context.fillStyle = 'yellow';
context.lineWidth = 7;
context.strokeStyle = 'black';
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?
Web programmer - CFORP