hi all,
i’m trying to input fill() from a global array and can’t see why this won’t work. it looks like a type conversion issue, but i thought this should work. any hints?
let array_main = ['0fb794', 2, 3];
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
print("'#"+array_main[0]+"'");
fill("'#"+array_main[0]+"'"); //This dosen't work
//fill('#0fb794' ); //This works
triangle(30, 75, 58, 20, 86, 75);
}