Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Cannot draw line of width 1 using ofDrawLine or ofLine

$
0
0

@ggtMM wrote:

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()
}

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles