| 54 | fl::UICheckbox use16Bit("16-bit", true); // Default checked for 16-bit precision |
| 55 | |
| 56 | fl::EaseType getEaseType(int value) { |
| 57 | switch (value) { |
| 58 | case 0: return fl::EaseType::EASE_NONE; |
| 59 | case 1: return fl::EaseType::EASE_IN_QUAD; |
| 60 | case 2: return fl::EaseType::EASE_OUT_QUAD; |
| 61 | case 3: return fl::EaseType::EASE_IN_OUT_QUAD; |
| 62 | case 4: return fl::EaseType::EASE_IN_CUBIC; |
| 63 | case 5: return fl::EaseType::EASE_OUT_CUBIC; |
| 64 | case 6: return fl::EaseType::EASE_IN_OUT_CUBIC; |
| 65 | case 7: return fl::EaseType::EASE_IN_SINE; |
| 66 | case 8: return fl::EaseType::EASE_OUT_SINE; |
| 67 | case 9: return fl::EaseType::EASE_IN_OUT_SINE; |
| 68 | } |
| 69 | FL_ASSERT(false, "Invalid ease type"); |
| 70 | return fl::EaseType::EASE_IN_OUT_QUAD; |
| 71 | } |
| 72 | |
| 73 | void setup() { |
| 74 | Serial.begin(115200); |