class
Fluorite::SpriteSheet::Core::AtlasPlan
- Fluorite::SpriteSheet::Core::AtlasPlan
- Reference
- Object
Overview
Complete computed layout plan and atlas manifest for a sprite sheet
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
fluorite/sprite_sheet/core/pipeline.crConstructors
- .new(input_path : String, output_path : String, animation_name : String, loop_animation : Bool, format : String, frame_width : Int32, frame_height : Int32, frame_count : Int32, columns : Int32, rows : Int32, padding : Int32, margin : Int32, raw_atlas_width : Int32, raw_atlas_height : Int32, atlas_width : Int32, atlas_height : Int32, power_of_two : Bool, fps : Float64, max_colors : Int32, dither : String, scale_flags : String, metrics : CompressionMetrics, frames : Array(SpriteFrameRect))
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
- #animation_name : String
- #atlas_height : Int32
- #atlas_width : Int32
- #columns : Int32
- #dither : String
- #format : String
- #fps : Float64
- #frame_count : Int32
- #frame_height : Int32
- #frame_width : Int32
- #frames : Array(SpriteFrameRect)
- #input_path : String
- #loop_animation : Bool
- #margin : Int32
- #max_colors : Int32
- #metrics : CompressionMetrics
- #output_path : String
- #padding : Int32
- #power_of_two : Bool
- #raw_atlas_height : Int32
- #raw_atlas_width : Int32
- #rows : Int32
- #scale_flags : String
-
#to_godot_import(source_res_path : String | Nil = nil) : String
Generates deterministic Godot 4.8
.importmetadata for compressed 2D SpriteSheets
Constructor Detail
def self.new(input_path : String, output_path : String, animation_name : String, loop_animation : Bool, format : String, frame_width : Int32, frame_height : Int32, frame_count : Int32, columns : Int32, rows : Int32, padding : Int32, margin : Int32, raw_atlas_width : Int32, raw_atlas_height : Int32, atlas_width : Int32, atlas_height : Int32, power_of_two : Bool, fps : Float64, max_colors : Int32, dither : String, scale_flags : String, metrics : CompressionMetrics, frames : Array(SpriteFrameRect))
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Instance Method Detail
def to_godot_import(source_res_path : String | Nil = nil) : String
#
Generates deterministic Godot 4.8 .import metadata for compressed 2D SpriteSheets