mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-16 05:37:11 +00:00
parsecolortable
This commit is contained in:
11
util.cpp
11
util.cpp
@@ -615,6 +615,17 @@ EX color_t parsecolor(const string& s, bool has_alpha) {
|
||||
return col;
|
||||
}
|
||||
|
||||
EX colortable parsecolortable(const string& s) {
|
||||
colortable tab;
|
||||
tab.clear();
|
||||
exp_parser ep;
|
||||
ep.s = s;
|
||||
tab.push_back(ep.parsecolor() >> 8);
|
||||
while(ep.eat(","))
|
||||
tab.push_back(ep.parsecolor() >> 8);
|
||||
return tab;
|
||||
}
|
||||
|
||||
EX trans23 parsematrix23(const string& s) {
|
||||
trans23 t;
|
||||
#if MAXMDIM == 3
|
||||
|
||||
Reference in New Issue
Block a user