Skip to content

Instantly share code, notes, and snippets.

@MODKILLER1001
MODKILLER1001 / image_to_particles.py
Created July 5, 2020 23:12 — forked from onnowhere/image_to_particles.py
Quick tool that generates a function that displays particles for an input image using local coordinates. Drop images in the `images` folder in the same directory as the script. You'll also need to `pip install opencv-python`. Edit generation options at the bottom of the file.
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
@MODKILLER1001
MODKILLER1001 / README.md
Created February 2, 2023 20:11 — forked from branw/README.md
Finding the most annoying Discord emoji to use for TTS

By Duration

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