Hi, I’m trying to make a polyhedron renderer thing but when I try to draw a vertex, it prints out
Script error. (: line 0)
and
p5 had problems creating the global function "createElement", possibly because your code is already using that name as a variable. You may want to rename your variable to something else.
The first error happens whenever i try do draw something to the canvas, and the second error happens no matter what, even on a new sketch. My code looks like this and I am using p5.dimensions,
var t;
function setup() {
createCanvas(400, 400, WEBGL);
t=nVector(1,1,1)
}
function draw() {
background(255);
point(t.x,t.y,t.z);
}
EDIT: So it turns out that both errors happen whenever I am logged in, which doesn’t make sense.