| 230 | } |
| 231 | |
| 232 | Json jsonFromColor(Color const& color) { |
| 233 | JsonArray result; |
| 234 | result.push_back(color.red()); |
| 235 | result.push_back(color.green()); |
| 236 | result.push_back(color.blue()); |
| 237 | if (color.alpha() < 255) |
| 238 | result.push_back(color.alpha()); |
| 239 | return result; |
| 240 | } |
| 241 | |
| 242 | PolyD jsonToPolyD(Json const& v) { |
| 243 | PolyD poly; |