UnderlineBackground
class UnderlineBackground(color: Color, val thickness: Float = 1.0f, val ratio: Float = 0.9f) : ColoredBackground
A Background specifically designed for underlining Text Nodes, where it isn't possible to use a Border.
ratio is the position of the underline as a proportion of the height. The default is 0.9f, because 1.0f is too far down.
Functions
Link copied to clipboard
Returns a new instance of ColoredBackground with a different color. Other attributes of the border will be copied. e.g. For a RoundedBackground, the radius will be the same.