q5play
    Preparing search index...

    Variable mouseIsPressed

    mouseIsPressed: boolean

    🖲 True if the mouse is currently pressed, false otherwise.

    q5.draw = function () {
    if (mouseIsPressed) background(0.4);
    else background(0.8);
    };