Duration (s) | Description |
---|---|
1.28 | backhand index pointing down medium-dark skin tone |
1.28 | backhand index pointing left medium-dark skin tone |
1.27 | backhand index pointing right medium-dark skin tone |
1.26 | backhand index pointing down medium-light skin tone |
1.25 | backhand index pointing left medium-light skin tone |
1.25 | person playing water polo medium-dark skin tone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import os | |
class ImageToParticle: | |
def __init__(self, image_file, resolution=(40, 80), scale=0.25, max_size=5, replace_transparent=[], commands=[], show_display=False): | |
self.image_file = image_file # Source file | |
self.resolution = resolution # Restrict number of pixels to generate | |
self.scale = scale # Scale the size of image displayed in game | |
self.max_size = max_size # Maximum particle size, alpha scales this if replace_transparent is not defined | |
self.replace_transparent = replace_transparent # RGB value to replace 0 alpha with |