This file contains hidden or 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
| -- 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 |
This file contains hidden or 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
| --############################################################################# | |
| -- 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 공간에서) |
This file contains hidden or 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
| using System.Collections; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using System.Linq; | |
| using AnimationImporter; | |
| using System.IO; | |
| [CustomEditor(typeof(DefaultAsset))] | |
| public class AseFileInspector: Editor | |
| { |