Maybe one bug in the p5

Unfortunately you can’t chain like that :frowning: it makes sense for people, but computers need different notation:

x-diameter/2 < mouseX && mouseX < x+diameter/2

Or

abs(x - mouseX) < diameter/2
1 Like