The strokeWeight() function not working on

edited April 2018 in JavaScript Mode

I regularly use jsfiddle to share my processing sketches with other people.

But now I've noticed something weird. I don't know where exactly the problem is, but for some reason, the shapes are not being rendered with a weight 5 border, they render with the default weight of 1.

Here's the sketch and everything: (the strokeWeight function is called at line 23).

(The program so far draws a Rubik's cube with the top layer randomly permuted and you can click to refresh it, though I'm planning to add more features to it.)

I'll be happy if anyone could figure this out for me. I really don't feel like rewriting the program in p5 right now.

Sign In or Register to comment.