diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-09-15 23:04:32 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-09-15 23:04:32 +0100 |
| commit | 91bc14efd9488f8657a1657c1f40ae9f6c3321e9 (patch) | |
| tree | 9484216f5703a9db45d99c92e679ee14c4572f8b /futuregael/src | |
| parent | 955356d8cc6261474d55727e0bbfaab324fa09e1 (diff) | |
reading palettes
Diffstat (limited to 'futuregael/src')
| -rw-r--r-- | futuregael/src/ofApp.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/futuregael/src/ofApp.h b/futuregael/src/ofApp.h index 26987e1..b5d0c25 100644 --- a/futuregael/src/ofApp.h +++ b/futuregael/src/ofApp.h @@ -1,14 +1,18 @@ #pragma once #include "ofMain.h" -# + #include "ofxCsv.h" class scriptLine{ public: - scriptLine(string audiofile,string palette,string words){ + scriptLine(string audiofile,string cols,string words){ audio.load(audiofile); text=words; + vector<string> colours=ofSplitString(cols,","); + for (auto c: colours){ + ofLog()<<"got colour: "<<ofColor::fromHex(ofHexToInt(c)); + } } vector<ofColor> palette; string text; |
