struct Fluorite::SpriteSheet::Core::PipelineConfig

Overview

Pure Core Engine configuration for the automated sprite sheet compression pipeline

Defined in:

fluorite/sprite_sheet/core/pipeline.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input_path : String = "", output_path : String = "", metadata_path : String | Nil = nil, godot_import_path : String | Nil = nil, frame_width : Int32 = 64, frame_height : Int32 = 64, frame_count : Int32 = 16, fps : Float64 = 12.0, columns : Int32 | Nil = nil, rows : Int32 | Nil = nil, layout_policy : LayoutPolicy = LayoutPolicy::Grid, padding : Int32 = 0, margin : Int32 = 0, background_color : String = "0x00000000", power_of_two : Bool = false, format : CompressionFormat = CompressionFormat::CLUT8, max_colors : Int32 | Nil = nil, dither : DitherAlgorithm = DitherAlgorithm::Sierra2_4a, bayer_scale : Int32 = 2, scale_flags : ScaleFlags = ScaleFlags::Nearest, png_compression_level : Int32 = 9, webp_quality : Int32 = 90, webp_lossless : Bool = true, reserve_transparent : Bool = true, stats_mode : String = "full", seek : String | Time::Span | Nil = nil, duration : String | Time::Span | Nil = nil, crop_rect : Tuple(Int32, Int32, Int32, Int32) | Nil = nil, animation_name : String = "default", loop_animation : Bool = true) #

Instance Method Detail

def animation_name : String #

def animation_name=(animation_name : String) #

def background_color : String #

def background_color=(background_color : String) #

def bayer_scale : Int32 #

def bayer_scale=(bayer_scale : Int32) #

def columns : Int32 | Nil #

def columns=(columns : Int32 | Nil) #

def crop_rect : Tuple(Int32, Int32, Int32, Int32) | Nil #

def crop_rect=(crop_rect : Tuple(Int32, Int32, Int32, Int32) | Nil) #

def dither : DitherAlgorithm #

def dither=(dither : DitherAlgorithm) #

def duration : String | Time::Span | Nil #

def duration=(duration : String | Time::Span | Nil) #

def effective_max_colors : Int32 #

def format : CompressionFormat #

def format=(format : CompressionFormat) #

def fps : Float64 #

def fps=(fps : Float64) #

def frame_count : Int32 #

def frame_count=(frame_count : Int32) #

def frame_height : Int32 #

def frame_height=(frame_height : Int32) #

def frame_width : Int32 #

def frame_width=(frame_width : Int32) #

def godot_import_path : String | Nil #

def godot_import_path=(godot_import_path : String | Nil) #

def input_path : String #

def input_path=(input_path : String) #

def layout_policy : LayoutPolicy #

def layout_policy=(layout_policy : LayoutPolicy) #

def loop_animation : Bool #

def loop_animation=(loop_animation : Bool) #

def margin : Int32 #

def margin=(margin : Int32) #

def max_colors : Int32 | Nil #

def max_colors=(max_colors : Int32 | Nil) #

def metadata_path : String | Nil #

def metadata_path=(metadata_path : String | Nil) #

def output_path : String #

def output_path=(output_path : String) #

def padding : Int32 #

def padding=(padding : Int32) #

def png_compression_level : Int32 #

def png_compression_level=(png_compression_level : Int32) #

def power_of_two : Bool #

def power_of_two=(power_of_two : Bool) #

def reserve_transparent : Bool #

def reserve_transparent=(reserve_transparent : Bool) #

def rows : Int32 | Nil #

def rows=(rows : Int32 | Nil) #

def scale_flags : ScaleFlags #

def scale_flags=(scale_flags : ScaleFlags) #

def seek : String | Time::Span | Nil #

def seek=(seek : String | Time::Span | Nil) #

def stats_mode : String #

def stats_mode=(stats_mode : String) #

def validate! : Nil #

def webp_lossless : Bool #

def webp_lossless=(webp_lossless : Bool) #

def webp_quality : Int32 #

def webp_quality=(webp_quality : Int32) #