class CYOAdventure::Image

Defined in:

cyo_adventure/image.cr

Constant Summary

EXTENSIONS = ["png", "jpg", "jpeg"]

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class CYOAdventure::Content

draw(offset : Int32, height : Int32) draw, height : Int32 height, new_line : Bool new_line, next : Content | Nil next, node : Node node, node? : Node | Nil node?

Constructor methods inherited from class CYOAdventure::Content

new(node : Node, line : String, dir : String) : Content new

Constructor Detail

def self.new(node : Node, hash_line : String, dir : String) #

[View source]

Class Method Detail

def self.draw_cache #

Empty cache


[View source]

Instance Method Detail

def draw(offset : Int32 = 0, height = @height) #

Store in a cache to be draw after the NCurses refresh


[View source]
def height : Int32 #

[View source]
def height=(new_h) #

[View source]
def new_line : Bool #

[View source]
def pixel_size #

[View source]