You just need to concatenate the r_a variable to build the string correctly:
var r_a = 0.3;
ctx.fillStyle = "rgba(32, 45, 21, " + r_a + ")";
You just need to concatenate the r_a variable to build the string correctly:
var r_a = 0.3;
ctx.fillStyle = "rgba(32, 45, 21, " + r_a + ")";