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

createSlider seems to be undefined #6

Closed
sthaha opened this issue Nov 7, 2019 · 4 comments
Closed

createSlider seems to be undefined #6

sthaha opened this issue Nov 7, 2019 · 4 comments

Comments

@sthaha
Copy link

sthaha commented Nov 7, 2019

createSlider throws an Uncaught ReferenceError: createSlider is not defined

e.g.

function setup() {
  createCanvas(windowWidth, windowHeight)
}

function draw() {
  rect(width/2 - 40 , height/2 - 30, 80, 60)
}

let x = createSlider(0, 1, 10)
@sthaha
Copy link
Author

sthaha commented Nov 10, 2019

#1 (comment) addresses this.

@sthaha sthaha closed this as completed Nov 10, 2019
@Gaweph
Copy link
Owner

Gaweph commented Nov 11, 2019

Sorry for delay in reply. Glad you worked it out. Since this has been mentioned more than once it might be worth adding the dom library to the default example.

@sthaha
Copy link
Author

sthaha commented Nov 11, 2019

yes, I feel having it as default makes a lot of sense especially because tsc complies fine and you see the error only when you run it. Alternatively, it may help if this is pointed out in the README.

Thanks @Gaweph for the quick start, it helped a lot!

@Gaweph
Copy link
Owner

Gaweph commented Nov 22, 2019

@sthaha Dom and Sound libraries are now part of the default demo thanks for your input.

rodigu added a commit to rodigu/EntiTS that referenced this issue Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants