mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[image] Transparency changes; code refactor (#7908)
This commit is contained in:
		
							
								
								
									
										23
									
								
								tests/components/animation/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tests/components/animation/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| animation: | ||||
|   - id: rgb565_animation | ||||
|     file: $component_dir/anim.gif | ||||
|     type: RGB565 | ||||
|     use_transparency: opaque | ||||
|     resize: 50x50 | ||||
|   - id: rgb_animation | ||||
|     file: $component_dir/anim.apng | ||||
|     type: RGB | ||||
|     use_transparency: chroma_key | ||||
|     resize: 50x50 | ||||
|   - id: grayscale_animation | ||||
|     file: $component_dir/anim.apng | ||||
|     type: grayscale | ||||
|  | ||||
| display: | ||||
|   lambda: |- | ||||
|       id(rgb565_animation).next_frame(); | ||||
|       id(rgb_animation1).next_frame(); | ||||
|       id(grayscale_animation2).next_frame(); | ||||
|       it.image(0, 0, rgb565_animation); | ||||
|       it.image(120, 0, rgb_animation1); | ||||
|       it.image(240, 0, grayscale_animation2); | ||||
		Reference in New Issue
	
	Block a user