processanimateR (version 1.0.5)

token_select_decoration: Decoration callback for token selection

Description

Decoration callback for token selection

Usage

token_select_decoration(stroke = "black")

Value

A JavaScript callback function called when token selection changes.

Arguments

stroke

Sets the `stroke` attribute of selected tokens.

See Also

animate_process

Examples

Run this code
# Create a decoration callback that paints tokens red
token_select_decoration("red")

Run the code above in your browser using DataLab