struct Espresso::Scale
- Espresso::Scale
- Struct
- Value
- Object
Overview
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:
espresso/scale.crConstructors
-
.new(x : Float32, y : Float32)
Creates the scale with initial values.
Instance Method Summary
-
#to_s(io)
Creates a string representation of the scale.
-
#x : Float32
Horizontal scaling amount.
-
#y : Float32
Vertical scaling amount.