CollectionsToggle options object that extends OBJ_Collection options object (without parent).
parent
width
number
height
barHeight
sides
20
theme
light
dark
colorOff
colorOn
[0, 1, 0, 1]
circleBorder
barBorder
label
CollectionsToggle options object that extends OBJ_Collection options object (without
parent).widthnumber— toggle widthheightnumber— toggle heightbarHeightnumber— height of toggle bar showing on or offsidesnumber— number of sides in curves (20)themelight|dark— selects default colors for a light or dark switch (dark)colorOffTypeColor — toggle off colorcolorOnTypeColor — toggle on color ([0, 1, 0, 1])circleBorderOBJ_ToggleBorder — border around circle (defaults to on where width is half the figure's default line width)barBorderOBJ_ToggleBorder — border around bar (defaults to off - width = 0)labelOBJ_ToggleLabel