DrawLayers
Basic interface for every effect that draws something related to Layers. This class is a workaround: the Effect abstraction is meant to add effects to nodes, not to draw layers. At present, is the finest workaround available. This workaround has the following disadvantages: - when there aren't nodes visible in the gui the effects are not used at all, so this effect won't work.
Inheritors
Functions
Link copied to clipboard
open fun <T, P : Position2D<P>?> apply(g: Graphics2D, n: Node<T>, environment: Environment<T, P>, wormhole: Wormhole2D<P>)
Applies the effect.
Link copied to clipboard
abstract fun <T, P : Position2D<P>?> drawLayers(toDraw: Collection<Layer<T, P>>, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)
Effectively draw the layers.
Link copied to clipboard