NewSideValues is a helper that creates new side/corner values and calls Set on them with the given values.
(vals ...units.Value)
| 221 | // NewSideValues is a helper that creates new side/corner values |
| 222 | // and calls Set on them with the given values. |
| 223 | func NewSideValues(vals ...units.Value) SideValues { |
| 224 | sides := Sides[units.Value]{} |
| 225 | sides.Set(vals...) |
| 226 | return SideValues{sides} |
| 227 | } |
| 228 | |
| 229 | // ToDots converts the values for each of the sides/corners |
| 230 | // to raw display pixels (dots) and sets the Dots field for each |