Skip to content
ExamplesOpen editor ↗

bopharaFensetere

→ windowWidth

The width of the window the sketch is running inside, in pixels.

bopharaFensetere

In Bopa, the “window” is the preview pane — the part of the editor your sketch runs inside. It is not the whole browser window. Drag the splitter between the code and the preview and bopharaFensetere changes.

It is not bophara, which is the width of the canvas — what thalaKanefase set. bophara is yours; bopharaFensetere is the room the canvas is sitting in.

It is most often used in setaLoeto, to make the canvas fill the space available:

thalaKanefase(bopharaFensetere, boleeleFensetere);

A canvas that fills the space available
tiro setaLoeto() {
  thalaKanefase(bopharaFensetere, boleeleFensetere);
  tlhalosa('Sediko se se mo bogareng jwa kanefase e e tlatsang lera la ponopele.');
}
tiro tshwantsha() {
  bokamorago(238);
  tlogelaMothalo();
  tlatsaMmala(60, 130, 190);
  thalaSediko(bophara / 2, boleele / 2, palopotlana(bophara, boleele) / 2);
}

boleeleFensetere, fensetereEFetogile, bophara, thalaKanefase