Simple, uses a python script to work. Requirements: pip install Pillow How to use: Put your image in the same folder, rename it to 'input.png', run the script, then right-click your Scratch list and select 'import' on the generated CSV file.
Script: import csv from PIL import Image INPUT_IMAGE_PATH = "input.png" # Use a format with transparency like PNG OUTPUT_CSV_PATH = "scratch_pixels.csv" TARGET_SIZE = (240, 240) def image_to_scratch_csv(image_path, csv_path, size): # Convert image to RGBA format to access Alpha (transparency) channel img = Image.open(image_path).convert("RGBA") img = img.resize(size, Image.Resampling.LANCZOS) with open(csv_path, mode="w", newline="") as file: writer = csv.writer(file) for y in range(size[1]): for x in range(size[0]): r, g, b, a = img.getpixel((x, y)) # If fully transparent (Alpha == 0), write "BLANK" if a == 0: writer.writerow(["BLANK"]) else: # Write hex color without '#' hex_color = f"{r:02X}{g:02X}{b:02X}" writer.writerow([hex_color]) print(f"Export complete: '{csv_path}'") if __name__ == "__main__": image_to_scratch_csv(INPUT_IMAGE_PATH, OUTPUT_CSV_PATH, TARGET_SIZE)