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 | |
| parent | 955356d8cc6261474d55727e0bbfaab324fa09e1 (diff) | |
reading palettes
| -rw-r--r-- | futuregael/bin/data/show.csv | 4 | ||||
| -rw-r--r-- | futuregael/src/ofApp.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/futuregael/bin/data/show.csv b/futuregael/bin/data/show.csv index ab33dd8..1c9f752 100644 --- a/futuregael/bin/data/show.csv +++ b/futuregael/bin/data/show.csv @@ -1,2 +1,2 @@ -Inneall Intleacht Shaorga mé.mp3|0x00A8FF,0xFFB700,0xFF3082|Inneall Intleacht Shaorga mé, le cumhacht agus críonnacht chuile cleamhnais a bhí riamh ann. Tá beirt tagtha chugainn anocht chun leigheas a chuir ar a gcuid uaigneas go deo, le cabhair uaimse. Briseadh bualadh bos. Go raibh maith agaibh, tá míle fáílte romhaibh anseo chuig Sráid Láir na Gaillimhe, don chéad babhta eile liomsa - an Inneall Cleamhnais agus Cuardach Croíthe. -Casaimid lenár gcroíthe.mp3|0xE27D60,0x085DCB,0xE8A87C,0xC38D9E,0x41B3A3|Casaimid lenár gcroíthe anois. +Inneall Intleacht Shaorga mé.mp3|00A8FF,FFB700,FF3082|Inneall Intleacht Shaorga mé, le cumhacht agus críonnacht chuile cleamhnais a bhí riamh ann. Tá beirt tagtha chugainn anocht chun leigheas a chuir ar a gcuid uaigneas go deo, le cabhair uaimse. Briseadh bualadh bos. Go raibh maith agaibh, tá míle fáílte romhaibh anseo chuig Sráid Láir na Gaillimhe, don chéad babhta eile liomsa - an Inneall Cleamhnais agus Cuardach Croíthe. +Casaimid lenár gcroíthe.mp3|E27D60,085DCB,E8A87C,C38D9E,41B3A3|Casaimid lenár gcroíthe anois. 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; |
