Quantcast
Viewing all articles
Browse latest Browse all 40524

Cannot draw line of width 1 using ofDrawLine or ofLine

I write the code as follows, but the drawn line is not width 1 but 2, and its color is pale white.

What should I do?

void ofApp::draw() {
    ofSetColor(255);
    ofSetLineWidth(1.0f);
    ofDrawLine(100, 100, 200, 100); // or use ofLine()
}

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>