interface Primitives · Values

Bool

interface Bool

A reactive true/false value: code that depends on it runs again when its value changes.

Create one with values.bool(…) of a group. Visuals and handles have their own, for example visible and active. Computations that test something, such as Polygons.containsPoint or Boxes.intersects, return a Bool; given as result, it is written in place. Animate.bool sets the value after a delay.

Properties

value

value: boolean

The value. Setting it to the other value is a change; setting the same value is not.