Extends Number and Integer classes allowing creation of Measurements, Colors and Keyframes from numbers. Allows syntax like 12.px (meaning 12 pixels) for CSS values.
Type Params | Return Type | Name and description |
---|---|---|
|
static Measurement |
getCh(Number n) |
|
static Measurement |
getCm(Number n) |
|
static Color |
getColor(Integer n) Useful for colors: allows 0xaabbcc.color syntax (color hex value). |
|
static Measurement |
getDeg(Number n) |
|
static Measurement |
getEm(Number n) |
|
static Measurement |
getEx(Number n) |
|
static Measurement |
getIn(Number n) |
|
static Measurement |
getM(Number n) |
|
static Measurement |
getMm(Number n) |
|
static Measurement |
getMs(Number n) |
|
static Measurement |
getPc(Number n) |
|
static Measurement |
getPercent(Number n) |
|
static Measurement |
getPt(Number n) |
|
static Measurement |
getPx(Number n) |
|
static Measurement |
getRad(Number n) |
|
static Measurement |
getRem(Number n) |
|
static Measurement |
getS(Number n) |
|
static Measurement |
getVh(Number n) |
|
static Measurement |
getVmax(Number n) |
|
static Measurement |
getVmin(Number n) |
|
static Measurement |
getVw(Number n) |
|
static Measurement |
mod(Number n, Underscore underscore) |
|
static KeyFrames |
mod(Integer n, Closure frameCl) Used within keyframes block such as 50% { opacity: 1 }. |
|
static Color |
toColor(Integer n) Useful for colors: allows 0xaabbcc.toColor() syntax (color hex value). |
Used within keyframes block such as 50% { opacity: 1 }.