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

Creating a basic trail whilst moving 2d object

$
0
0

@skrowemarF wrote:

Hello, thanks in advance. I’m really stuck on a solution. I need to insure the circle I ahve created leaves a fading trail. All of the solution I have seen seem more advance that the solution I should be aiming for which is a combination of turning off ofSetBackGroundAuto and somehow overlaying the canvas to insure the circle fades whilst it moves across the canvas using the mouse coords.

void ofApp::setup(){

ofSetBackgroundAuto(false);  

ofBackground(0);

}

void ofApp::draw(){

ofSetColor(255);	

ofDrawCircle(mouseX, mouseY, 70);
 
ofSetColor(255, 0, 0);
ofDrawCircle(mouseX, mouseY, 50);
ofBackground(255, 200);

}

Any solutions appreciated.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles