Skip to content
ExamplesOpen editor ↗

boloka

→ save()

Downloads data or a canvas.

boloka([diteng], [leina], [mofuta])

Pinned 2.3.2 dispatches no arguments or one file-name string to the current canvas; a renderer/graphics buffer to its canvas; .json to saveJSON; .txt or arrays to saveStrings; table to saveTable; and canvas image to its canvas. Plain objects require a .json filename. Arbitrary element wrapper and native Blob/File are unsupported, and the sound addon is absent. Prefer the specific export helpers for predictable types. Native return is undefined.

NameTypeDescription
diteng (optional)`selomokwalo`
leina (optional)mokwaloFile name with extension.
mofuta (optional)mokwaloNative export option/extension.
Downloads data or a canvas.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaKonopo("Boloka");
  dirisaMoGo(e, pebaEKonyilwe, () => boloka({palo: 3}, "dipalo.json"));
}

bopaTemana, dirisaMoGo