Last active
May 1, 2020 03:10
-
-
Save moebiussurfing/a01c7da9939d13bbae9e42c67a8862c3 to your computer and use it in GitHub Desktop.
openFrameworks - example: cool colors grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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