STANNcam icon indicating copy to clipboard operation
STANNcam copied to clipboard

change stanncam_init() and stanncamI() to accept an options struct

Open jack27121 opened this issue 9 months ago • 0 comments

when initing a camera with specific settings, in one long line it becomes incomprehensible to type. I think having it accept a struct with the specific settings like

var _options ={
 x: 0,
 y: 0,
 width: 400,
 height: 400,
 surface_extra_on: false,
 smooth_draw: false,
 smooth_zoom: false
}

cam1 = new stanncam(_options)

might be better. Waiting for others opinions

jack27121 avatar Sep 16 '23 12:09 jack27121