apply

open fun <T, P : Position2D<P>?> apply(g: Graphics2D, n: Node<T>, environment: Environment<T, P>, wormhole: Wormhole2D<P>)(source)

Applies the effect.

Parameters

<T>

concentration type

<P>

position type

g

graphics

n

node

environment

environment

wormhole

the wormhole used to map environment's coords to screen coords


open fun apply(graphic: Graphics2D, node: Node<out Any>, x: Int, y: Int)(source)

Deprecated

Applies the effect.

Deprecated

use apply instead.

Parameters

graphic

Graphics2D to use

node

the node to draw

x

x screen position

y

y screen position