https://github.com/moebiussurfing/ofxcolorsbrowser
openFrameworks add-on to handle big color libraries including a +2000 colors Pantone, Crayola, Sanzo-Wada and other libraries.
https://github.com/moebiussurfing/ofxcolorsbrowser
color ofxaddon openframeworks openframeworks-addon palette pantone
Last synced: about 1 year ago
JSON representation
openFrameworks add-on to handle big color libraries including a +2000 colors Pantone, Crayola, Sanzo-Wada and other libraries.
- Host: GitHub
- URL: https://github.com/moebiussurfing/ofxcolorsbrowser
- Owner: moebiussurfing
- License: mit
- Created: 2019-07-21T12:37:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T02:19:02.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T16:19:42.952Z (over 1 year ago)
- Topics: color, ofxaddon, openframeworks, openframeworks-addon, palette, pantone
- Language: C++
- Homepage:
- Size: 3.28 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ofxColorsBrowser
=============================
# Overview
An **openFrameworks** add-on to browse many named color libraries imported from JSON files.
## Screenshots
#### ofxSurfingColors

## Color Libraries
* **Pantone** (+2000 colors).
* [**Sanzo Wada**](https://github.com/dblodorn/sanzo-wada): [A Dictionary of Color Combinations](https://sanzo-wada.dmbk.io/) from **@dblodorn**.
* [**Crayola**](https://gist.github.com/jjdelc/1868136) from **@jjdelc**.
* [**Cheprasov**](https://github.com/cheprasov/json-colors) from **@cheprasov**.
* [**Open Color**](https://github.com/pd-andy/ofxOpenColor) from **@pd-andy**.
* **OF Native** named colors.
## 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
```.cpp
#include "ofxColorsBrowser.h"
ofxColorsBrowser colorBrowser;
ofFloatColor colorBg;
```
### ofApp.cpp
```.cpp
ofApp::setup()
{
colorBrowser.setupColorPtr(colorBg); // set local target color "receiver"
colorBrowser.setup();
}
ofApp::draw()
{
ofBackground(colorBg); // auto updated when changes
}
```
## Dependencies
- [ofxSurfingHelpers](https://github.com/moebiussurfing/ofxSurfingHelpers)
- ofxGui
- [ofxRectangleUtils](https://github.com/bakercp/ofxRectangleUtils/tree/develop) * / DEVELOP BRANCH
- [ofxFontStash](https://github.com/armadillu/ofxFontStash) *
- [ofxSurfingImGui](https://github.com/moebiussurfing/ofxSurfingImGui) **
- [ofxImGui](https://github.com/Daandelange/ofxImGui/) **
- [ofxWindowApp](https://github.com/moebiussurfing/ofxWindowApp) ***
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**!
- [ofxOpenColor](https://github.com/pd-andy/ofxOpenColor)
## 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.*