Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
564 B
2
Indexable
Never
if ((colorPicker.insideButtonR(x, y) && colorPicker.insideBoundingBoxR(x, y)) || colorPicker.insideBoundingBoxR(x, y)){
            colorPicker.handleMouseClick(x, y, 'r');
        }
        if ((colorPicker.insideButtonG(x, y) && colorPicker.insideBoundingBoxG(x, y)) || colorPicker.insideBoundingBoxG(x, y)){
            colorPicker.handleMouseClick(x, y, 'g');
        }
        if ((colorPicker.insideButtonB(x, y) && colorPicker.insideBoundingBoxB(x, y)) || colorPicker.insideBoundingBoxB(x, y)){
            colorPicker.handleMouseClick(x, y, 'b');
        }
Leave a Comment