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

Why does this code not draw a circle?

$
0
0

@Ricordi wrote:

Hello. I’m wondering why this code doesn’t display a circle. I believe I’m disabling the auto background. However, something is overwriting the circle initially written in setup().

#include “ofApp.h”

//--------------------------------------------------------------
void ofApp::setup(){
ofSetColor(255);
ofDrawCircle(100, 100, 100, 100);
ofSetBackgroundAuto(false);
}

//--------------------------------------------------------------
void ofApp::update(){

}

//--------------------------------------------------------------
void ofApp::draw(){

}

Posts: 10

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles