03_MyFirstScene
ofSetWindowShape(...)
can be called in ofApp::setup()
).ofBackground(...)
.ofDrawRectangle(...)
, ofDrawEllipse(...)
, ofDrawCircle(...)
, ofDrawLine(...)
.for
-loops) to create patterns.if
-statements) to make some portion of your self-portrait react to a mouse press and its position. For example, you might make your eyes close if you click on them.
ofGetMouseX()
and ofGetMouseY()
to get the current mouse position.ofIsMousePressed()
to determine whether the mouse is pressed.
-
if (ofIsMousePressed())
{
float mouseX = ofGetMouseX();
float mouseY = ofGetMouseY();
// do something with the mouse and its position
}
ofSetColor(...)
.ofFill()
and ofNoFill()
. Like color, this “fill state” will apply until you explicitly set it again.ofSoundPlayer
to make looping sounds and sounds that respond to mouse input.ofApp::setup()
, ofApp::update()
and ofApp::draw()
functions?setup()
and loop()
functions in Arduino?
-int myArray[];
) array and a std::vector
(e.g. std::vector<int> myVector;
?for
-loop and a range-for
and why might you use one vs. the other?