class Text

Defined in:

engine.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(font : Raylib::Font = RL.get_font_default, text : String = "debug text", position : Raylib::Vector2 = RL::Vector2.new(x: 0, y: 0), origin : Raylib::Vector2 = RL::Vector2.new(x: 0, y: 0), rotation : Float64 = 0.0, font_size : Float64 = 12.0, spacing : Float64 = 2.0, color : Raylib::Color = RL::BLACK) #

[View source]

Instance Method Detail

def draw(pad_hor = 0, pad_vert = 0) #

[View source]
def size : RL::Vector2 #

[View source]