compute

fun compute(shapes: List<Pair<String, BoundaryShape>>, fullScreen: Boolean, expandCodeBlock: Boolean): Pair<ExitStatus, Map<String, BoundaryShape>>

Compute: Main method called from Virtual Machine to find coordinates for each shape on the Scene

Return

Pair of error and a map from shape ID to BoundaryShape

Parameters

shapes

: all the shapes to calculate coordinates for

fullScreen

: whether the scene is fully available (no code or variable block)

expandCodeBlock

: whether or not to expand the code block (when the variable block is hidden)