dock#
optionoav-p5?oav_dock=bottom | top
Which edge of the window the 🎹 button and its cards sit on, bottom or top; set it and the panel starts on that edge too.
Moves the 🎹, its cards and the panel to the top or bottom edge. On openprocessing.org the default is top, because OpenProcessing's console floats over the bottom of the sketch. The drum machine's card sits below a panel docked at the top.
The panel itself has two buttons for whoever is looking at it: Dock cycles bottom → top → floating (drag a floating panel by its bar), and Size cycles small → medium → large. This browser remembers the choice, and it wins over the option. When the sketch sets no dock, the panel starts at the bottom, also on openprocessing.org (from 2026-10-20: at the top it covered the sketch). The 🎹 moves out of the panel's way only when the two share an edge. Reloading the same page (Cmd+Enter on OpenProcessing) opens the panel again if it was open, and restarts drums started from its 🥁 on the same line and tempo.
- Type
String- Values
bottom | top- default
bottom (top on OpenProcessing)
Anything except top means bottom.
Notes
- Set it before oav-p5 loads.
window.OAV_P5 = { dock: … };above the loader line wins, then?oav_dock=…on the page address, then?dock=…on the script's own URL. Values inwindow.OAV_P5are turned into text, so write'off', notfalse. On OpenProcessing the page address takes?sketch_oav_dock=…(the project's README says OpenProcessing forwards it to the sketch).
Examples
window.OAV_P5 = { dock: 'top' };
function setup() {
createCanvas(400, 300);
}
function draw() {
background(20);
fill(255);
text('dock: ' + OAVp5.options.dock + ' (look for the 🎹)', 20, 30);
}Related
cornerWhich side of the window the 🎹 button, its cards and the compact panel sit on:rightorleft.panelWhether the 🎹 panel starts shut, open, or does not exist:closed,openoroff.compactShows the 🎹 panel as a small box in the corner, a third of the window high, instead of a full-width bar:onoroff.