Skip to content

Instantly share code, notes, and snippets.

View GameEgg's full-sized avatar

GameEgg

View GitHub Profile
@GameEgg
GameEgg / pixel art unscaler.lua
Last active September 16, 2025 06:31
Aseprite Script - Pixel Art Unscaler (made with cursor)
-- Pixel Unscale (Non-integer scaled pixel-art → crisp original grid)
-- No palette dependency; processes as RGBA.
-- Place this file in Aseprite scripts folder and run via Scripts menu.
local ColorMode = ColorMode
local pc = app.pixelColor
local function clamp(v, lo, hi)
if v < lo then return lo end
if v > hi then return hi end
@GameEgg
GameEgg / color simplication.lua
Created June 29, 2025 13:51
Aseprite Color Simplification Script - OKLAB-based perceptual color merging tool with real-time preview for reducing palette complexity by grouping similar colors
--#############################################################################
-- Color Difference Based Noise Removal - OKLAB Color Space
--#############################################################################
local MAX_MERGE = 2000
local RED_HIGHLIGHT_COLOR = app.pixelColor.rgba(255, 60, 60, 255)
local BLUE_HIGHLIGHT_COLOR = app.pixelColor.rgba(60, 60, 255, 255)
-- 색상 차이 기반 노이즈 제거 임계값 설정
local DEFAULT_COLOR_THRESHOLD = 0.05 -- 기본 색상 차이 임계값 (OKLAB 공간에서)
using System.Collections;
using UnityEditor;
using UnityEngine;
using System.Linq;
using AnimationImporter;
using System.IO;
[CustomEditor(typeof(DefaultAsset))]
public class AseFileInspector: Editor
{