Creating A Toolbar & Canvas Sketch

thanks, the inner ( ) are all not needed,
but hm…
for readability i not like both ways
AND is & (bitwise) bad? need && logical?
and make more lines?

  if (  ( mouseX > x ) && ( mouseX < ( x + w ) ) && 
        ( mouseY > y ) && ( mouseY < ( y + h ) ) ) return true;

better?

2 Likes