moebiussurfing / ofxColorsBrowser

openFrameworks add-on to handle big color libraries including a +2000 colors Pantone, Crayola, Sanzo-Wada and other libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ofxColorsBrowser

Overview

An openFrameworks add-on to browse many named color libraries imported from JSON files.

Screenshots

ofxSurfingColors

image

Color Libraries

Features

  • Updatable with other text files based libraries (JSON, XML, or other colors libs/addons).
  • Cards with seteable amount of colors.
  • Sort the library by Hue, Name or with the original sorting.
  • GUI with clickable colored and named boxes.
  • The interface can be completely disabled to simplify. But still exposing access to the colors.
  • Key commands, browse with arrow keys and an ofxGui debug panel.
  • Basic exposed parameters to integrate in other apps/add-ons. Store/Recall settings.

Usage

ofApp.h

#include "ofxColorsBrowser.h"

ofxColorsBrowser colorBrowser;
ofFloatColor colorBg;

ofApp.cpp

ofApp::setup()
{
	colorBrowser.setupColorPtr(colorBg); // set local target color "receiver"
	colorBrowser.setup();
}

ofApp::draw()
{
 	ofBackground(colorBg); // auto updated when changes
}

Dependencies

Mark Not required when
* interface is disabled
** ImGui is disabled
*** some example only

Already bundled into OF_ADDON/libs. No need to add to the PROJECT GENERATOR!

Tested systems

  • Windows10 / VS2017 / OF ~0.11
  • macOS High Sierra / Xcode 9/10 / OF ~0.11

Author

Addon by @moebiusSurfing
(ManuMolina). 2020.

Thanks to @bakercp, @armadillu, @pd-andy and all the JSON packers linked above for their repositories.

License

MIT License.

About

openFrameworks add-on to handle big color libraries including a +2000 colors Pantone, Crayola, Sanzo-Wada and other libraries.

License:MIT License


Languages

Language:C++ 90.9%Language:C 6.3%Language:Makefile 2.6%Language:PowerShell 0.1%