PYTHOHow can I make four "buttons"(squares) and each button make a circle change color? Please help

This is almost the same thing as the example of processing of 'Mouse Function' I just changed the width and height I need, etc. I can just be done with python language and this is the code I have just for 1 and it doesnt even work.

boxSize = 75
overBox = False
locked = False
xOffset = 0.0
yOffset = 0.0

def setup():
    size(1300, 685)
    background(175, 199, 185)

    frameRate(60) 
    smooth()  
    global bx, by
    bx = 100
    by = 200        
def draw():  
    global overBox
#-------------------------------------------------------------------------------------------------------
        #LED1 
    fill(255, 225, 201)#COLOR ORIGINAL


    if bx - boxSize < mouseX < bx + boxSize and \
       by - boxSize < mouseY < by + boxSize:
        overBox = True
        if not locked:
            stroke(255)
            fill(153)
    else:
        stroke(153)
        fill(153)
        overBox = False
    ellipse(100, 100, 75, 75)
    fill(255, 225, 201)

    ellipse(bx, by, boxSize, boxSize)


    ellipse(100, 200, 75, 75)#Boton1
    fill(185,90,213)
    textSize(10)
    text("On/Off LED1",69,205) 
Sign In or Register to comment.