Skip to content

Instantly share code, notes, and snippets.

// TODO: Change design to a box for tpo and an inscribed circle for hbf
// One row for each set of attributes
std::array<Attribute, 3> hbf = { Attribute::H, Attribute::B, Attribute::F };
std::array<Attribute, 3> tpo = { Attribute::T, Attribute::P, Attribute::O };
std::array<float, 3> color;
color = kindtoColor(p1state.kind);
std::copy(std::begin(color), std::end(color), std::begin(col_arr));
/*color = attributetoColor(p1state.invul, hbf);*/ color = { 0,0,0 };
std::copy(std::begin(color), std::end(color), std::begin(col_arr) + 3 * 1);