Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jack27121 opened this issue Sep 16, 2023 · 0 comments
Open

Comments

@jack27121
Copy link
Owner

jack27121 commented Sep 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant