ofSetColor(255, 0, 0);
ofCircle(ofGetMouseX(), ofGetMouseY(), 100);
ofRect(int(ofGetWidth())-ofGetMouseX(), 300, 200, 200);
ofSetColor(0, 255, 0);
ofRect(400, int(ofGetHeight())-ofGetMouseY(), 200, 200);
if (arrastro == true){
ofSetColor(0, 0, 255, 100);
ofRect(int(ofGetWidth())-ofGetMouseX(), int(ofGetHeight())-ofGetMouseY(), 200, 200);
ofCircle(xm, ym, 100);
} else {
ofSetColor(0, 0, 255);
ofRect(int(ofGetWidth())-ofGetMouseX(), int(ofGetHeight())-ofGetMouseY(), 200, 200);
ofCircle(xm, ym, 100);
}
No hay comentarios:
Publicar un comentario