package
0.0.0-20240805112912-11025e87965e
Repository: https://github.com/peter-mount/go-anim.git
Documentation: pkg.go.dev
# Functions
FromRectangle takes a plain rectangle and converts it into one with the specified units.
No description provided by the author
ParseDimension parses a string consisting of 1 to 4 Values that describe a Dimension.
ParseRectangle parses a string consisting of 4 Values that describe a Rectangle.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
Ch is the character width of the numeral zero glyph '0' of the active font face.
No description provided by the author
Dp is 1 density independent pixel: 1/160th of an inch.
Em is the height of the active font face, disregarding extra leading such as from double-spaced lines of text.
Ex is the x-height of the active font face.
In is 1 inch.
No description provided by the author
Mm is 1 millimetre: 1/25.4th of an inch.
No description provided by the author
Pt is 1 point: 1/72th of an inch.
Px is a physical pixel, regardless of the DPI resolution.
# Type aliases
Unit is a unit of length, such as inches or pixels.