I'm trying to draw a simple line with a custom color using the Drawing Canvas in Construct 3.
Here’s the setup:
However, when I draw the line, it always uses the default canvas color instead of the custom color I specified.
I've also tried doing this via script, but the result is the same. Here's the code I'm using:
function drawLinne(runtime) {
var c = runtime.objects.DrawingCanvas.getFirstInstance();
c.line(20, 20, 400, 400, [196,154,108,255], 20);
}
And here’s the result I get:
As you can see, the line does not reflect the color [196, 154, 108, 255] that I provided.
Is there something wrong with how I’m using the line() function, or is there another step I’m missing?
Any help would be appreciated!