Helios

Visualization

Disable AI help
Show generated code tab
Auto-start animation
Color mode
Height mode
Empty canvas
Note: This documentation was partly written with generative AI tools

Drawable

The base class for every drawable data structure. It provides the shared draw() / drop() lifecycle and a no-op method.

Initialization

Drawable(—)

Drawable is abstract and is never instantiated directly; only its subclasses are created.

Methods

draw()
Parameters:

Marks the object as present in the visualization, producing a frame. Typically called once right after creating the object.

drop()
Parameters:

Marks the object as removed from the visualization, so it no longer appears in subsequent frames.

Code library

Explore example visualisations of popular algorithms

30 examples