Skip to content
Draw visually a grid, the golden ratio, the third ratio and center relative to your width and height.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
README.md
ofxaddons_thumbnail.png

README.md

ofxShowGrid

ofxShowGrid

Openframeworks addon C++

Draw visually a grid, the golden ratio, the third ratio and center relative to your width and height.

Webpage : http://www.fluate.net/code/ofxshowgrid

Credit : Nicolas Boillot http://www.fluate.net

USAGE:

=== in ofApp.h add :

#include "ofxShowGrid.h" 

===

Then in draw() of ofApp.cpp add :

To show Grid relative to your width and height, define sizeW and sizeH to define each cell size.

ShowGrid(int widthG, int heightG,  int sizeW, int sizeH, int decalX, int decalY);

To show Golden ratio relative to your width and height.

ShowGoldenRatio(int widthG, int heightG, int decalX, int decalY);

To show Center relative to your width and height.

ShowCenter(int widthG, int heightG, int decalX, int decalY);

To show Third Ratio relative to your width and height.

ShowThirdRatio(int widthG, int heightG, int decalX, int decalY);

int decalX, int decalY are optionals, see the example for complete usage.

You can’t perform that action at this time.