class Celestine::Drawable::Transform

Overview

A transform class used to interact with the transform attribute

Defined in:

drawables/drawable.cr

Instance Method Summary

Instance Method Detail

def empty? #

[View source]
def matrix(a : Float64, b : Float64, c : Float64, d : Float64, e : Float64, f : Float64) #

[View source]
def objects_io : IO::Memory #

[View source]
def rotate(degrees, origin_x, origin_y) #

[View source]
def scale(x, y) #

[View source]
def skew_x(x) #

[View source]
def skew_y(y) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def translate(x, y) #

[View source]