struct Espresso::Scale


Scaling of an object in two-dimensions. Contains an x and y scaling amount represented as 32-bit floating-point numbers.

A value of 1 means no scaling, or original size. A value of 2, twice the size (bigger), and 0.5, half the size (smaller).

Defined in:



Instance Method Summary

Constructor Detail

def, y) #

Creates the scale with initial values.

[View source]

Instance Method Detail

def to_s(io) #

Creates a string representation of the scale.

[View source]
def x : Float32 #

Horizontal scaling amount.

[View source]
def y : Float32 #

Vertical scaling amount.

[View source]