BorderNode
- class BorderNode(*args, **kwargs)
Superclasses: RenderNode
A render node for a border.
Constructors
- class BorderNode
- classmethod new(outline: RoundedRect, border_width: Sequence[float], border_color: Sequence[RGBA]) BorderNode
Creates a
GskRenderNode
that will stroke a border rectangle inside the givenoutline
.The 4 sides of the border can have different widths and colors.
- Parameters:
outline – a
GskRoundedRect
describing the outline of the borderborder_width – the stroke width of the border on the top, right, bottom and left side respectively.
border_color – the color used on the top, right, bottom and left side.