image:
  - platform: animation
    id: rgb565_animation
    file: $component_dir/anim.gif
    type: RGB565
    transparency: opaque
    resize: 50x50
  - platform: animation
    id: rgb_animation
    file: $component_dir/anim.apng
    type: RGB
    transparency: chroma_key
    resize: 50x50
  - platform: animation
    id: grayscale_animation
    file: $component_dir/anim.apng
    type: grayscale

display:
  lambda: |-
      id(rgb565_animation).next_frame();
      id(rgb_animation).next_frame();
      id(grayscale_animation).next_frame();
      it.image(0, 0, rgb565_animation);
      it.image(120, 0, rgb_animation);
      it.image(240, 0, grayscale_animation);
