class DFL::Graphic

Overview

A DFL::Head's graphic data

Included Modules

Defined in:

D_File/dfl/graphic.cr
write.cr

Constructors

Instance Method Summary

Instance methods inherited from module WritingMethods::DFL::Graphic

write(io : IO) write

Constructor Detail

def self.from_image(image : Raylib::Image) : Graphic #

Converts a Raylib::Image to a graphic


[View source]
def self.read(io : IO) : Graphic #

Reads in a dfl graphic given the io


[View source]

Instance Method Detail

def data : Array(Color | Nil) #

The image data


[View source]
def data=(data : Array(Color | Nil)) #

The image data


[View source]
def height : UInt32 #

The height of the image


[View source]
def height=(height : UInt32) #

The height of the image


[View source]
def to_image : Raylib::Image #

Converts a graphic to a Raylib::Image


[View source]
def width : UInt32 #

The width of the image


[View source]
def width=(width : UInt32) #

The width of the image


[View source]