| 228 | |
| 229 | |
| 230 | bool Animation_Swirl::imageConicalGradient(HyperImage& painter, int centerX, int centerY, int angle, const std::vector<Animation_Swirl::SwirlGradient>& bytearray, bool reset) |
| 231 | { |
| 232 | angle = std::max(std::min(angle, 360), 0); |
| 233 | |
| 234 | std::vector<uint8_t> arr; |
| 235 | for(const Animation_Swirl::SwirlGradient& item : bytearray) |
| 236 | { |
| 237 | arr.push_back(item.items[0]); |
| 238 | arr.push_back(item.items[1]); |
| 239 | arr.push_back(item.items[2]); |
| 240 | arr.push_back(item.items[3]); |
| 241 | arr.push_back(item.items[4]); |
| 242 | } |
| 243 | painter.conicalFill(angle, arr, reset); |
| 244 | |
| 245 | return true; |
| 246 | |
| 247 | } |
| 248 | |
| 249 |
nothing calls this directly
no test coverage detected