openframeworks / ofSite

openFrameworks web site
http://openframeworks.cc
159 stars 578 forks source link

Documentation problem in ofGraphics #750

Closed Jade570 closed 3 years ago

Jade570 commented 3 years ago

There is typo issue in ofDrawRectangle() (link here).

The example code snippet for void ofDrawRectangle(float x1, float y1, float w, float h) in the site currently is written as:

void ofApp::draw(){
    ofDrawRect(10,10,100,100);
}

This should be corrected to

void ofApp::draw(){
    ofDrawRectangle(10,10,100,100);
}
icq4ever commented 3 years ago

https://github.com/openframeworks/ofSite/commit/a046ebc4fbe8e0836ee2a4b19be21a7b135c2ec1

thanks!