Skip to content

Instantly share code, notes, and snippets.

@moebiussurfing
Last active May 1, 2020 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moebiussurfing/a01c7da9939d13bbae9e42c67a8862c3 to your computer and use it in GitHub Desktop.
Save moebiussurfing/a01c7da9939d13bbae9e42c67a8862c3 to your computer and use it in GitHub Desktop.
openFrameworks - example: cool colors grid
fontSmall.loadFont("Fonts/DIN.otf", 8 );
ofxGuiSetFont( "Fonts/DIN.otf", 8 );
ofxGuiSetDefaultWidth( 260 );
// --------------------------------
void draw()
{
// + background
ofBackgroundGradient( ofColor(40,40,40), ofColor(0,0,0), OF_GRADIENT_CIRCULAR);
camera.begin();
// + draw a grid on the floor
ofSetColor( ofColor(60) );
ofPushMatrix();
ofRotate(90, 0, 0, -1);
//+
ofDrawGridPlane( 10, 10, false );
ofPopMatrix();
ofSetColor( ofColor::white );
//ofDrawBox( 1.0f );
mesh.draw();
camera.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment