← Back

ofxShowGrid

github.com/fluaten/ofxShowGrid · @fluaten
OF 0.9 Utilities

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

3 1 Last commit 11y ago Created 13y ago

README

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.



Get this addon

HTTPS
SSH