class Fluorite::Presets::SpriteSheet

Overview

Automated Sprite Sheet Packing & Palette Quantization Preset

Defined in:

fluorite/presets/sprite_sheet.cr

Class Method Summary

Class Method Detail

def self.build_command(input_path : String, output_path : String, frame_width : Int32 = 64, frame_height : Int32 = 64, frames : Int32 = 16, fps : Float64 | Int32 = 12, columns : Int32 | Nil = nil, rows : Int32 | Nil = nil, padding : Int32 = 0, margin : Int32 = 0, power_of_two : Bool = false, format : Symbol | String | Fluorite::SpriteSheet::Core::CompressionFormat = :clut8, dither : Symbol | String | Fluorite::SpriteSheet::Core::DitherAlgorithm = :sierra2_4a, scale_flags : Symbol | String | Fluorite::SpriteSheet::Core::ScaleFlags = :nearest, metadata_path : String | Nil = nil, godot_import_path : String | Nil = nil, seek : String | Time::Span | Nil = nil, duration : String | Time::Span | Nil = nil) : DSL::Command #

def self.build_config(input_path : String, output_path : String, frame_width : Int32 = 64, frame_height : Int32 = 64, frames : Int32 = 16, fps : Float64 | Int32 = 12, columns : Int32 | Nil = nil, rows : Int32 | Nil = nil, padding : Int32 = 0, margin : Int32 = 0, power_of_two : Bool = false, format : Symbol | String | Fluorite::SpriteSheet::Core::CompressionFormat = :clut8, dither : Symbol | String | Fluorite::SpriteSheet::Core::DitherAlgorithm = :sierra2_4a, scale_flags : Symbol | String | Fluorite::SpriteSheet::Core::ScaleFlags = :nearest, metadata_path : String | Nil = nil, godot_import_path : String | Nil = nil, seek : String | Time::Span | Nil = nil, duration : String | Time::Span | Nil = nil) : Fluorite::SpriteSheet::Core::PipelineConfig #

def self.build_plan(input_path : String, output_path : String, frame_width : Int32 = 64, frame_height : Int32 = 64, frames : Int32 = 16, fps : Float64 | Int32 = 12, columns : Int32 | Nil = nil, rows : Int32 | Nil = nil, padding : Int32 = 0, margin : Int32 = 0, power_of_two : Bool = false, format : Symbol | String | Fluorite::SpriteSheet::Core::CompressionFormat = :clut8, dither : Symbol | String | Fluorite::SpriteSheet::Core::DitherAlgorithm = :sierra2_4a, scale_flags : Symbol | String | Fluorite::SpriteSheet::Core::ScaleFlags = :nearest, metadata_path : String | Nil = nil, godot_import_path : String | Nil = nil, seek : String | Time::Span | Nil = nil, duration : String | Time::Span | Nil = nil) : Fluorite::SpriteSheet::Core::AtlasPlan #

def self.convert(input_path : String, output_path : String, frame_width : Int32 = 64, frame_height : Int32 = 64, frames : Int32 = 16, fps : Float64 | Int32 = 12, columns : Int32 | Nil = nil, rows : Int32 | Nil = nil, padding : Int32 = 0, margin : Int32 = 0, power_of_two : Bool = false, format : Symbol | String | Fluorite::SpriteSheet::Core::CompressionFormat = :clut8, dither : Symbol | String | Fluorite::SpriteSheet::Core::DitherAlgorithm = :sierra2_4a, scale_flags : Symbol | String | Fluorite::SpriteSheet::Core::ScaleFlags = :nearest, metadata_path : String | Nil = nil, godot_import_path : String | Nil = nil, seek : String | Time::Span | Nil = nil, duration : String | Time::Span | Nil = nil, &progress_block : Runner::Progress -> Nil) : Process::Status #

def self.convert(input_path : String, output_path : String, frame_width : Int32 = 64, frame_height : Int32 = 64, frames : Int32 = 16, fps : Float64 | Int32 = 12, columns : Int32 | Nil = nil, rows : Int32 | Nil = nil, padding : Int32 = 0, margin : Int32 = 0, power_of_two : Bool = false, format : Symbol | String | Fluorite::SpriteSheet::Core::CompressionFormat = :clut8, dither : Symbol | String | Fluorite::SpriteSheet::Core::DitherAlgorithm = :sierra2_4a, scale_flags : Symbol | String | Fluorite::SpriteSheet::Core::ScaleFlags = :nearest, metadata_path : String | Nil = nil, godot_import_path : String | Nil = nil, seek : String | Time::Span | Nil = nil, duration : String | Time::Span | Nil = nil) : Process::Status #