decorator property
Decorator
decorator
getter/setter pairinherited
The decorator is used to apply visual effects to a component.
By default, the PositionComponent
is equipped with a
Transform2DDecorator
which makes sure the component is rendered at a
proper location on the canvas. It is possible to replace this decorator
with another one if a different functionality is desired.
A more common use for this field, however, is to apply additional visual
effects such as tints/shadows/etc using Decorator.addLast
.
Implementation
late Decorator decorator;