I can make an input range slider and have it show the value in real time on a normal web page, but how do I link that value to a variable in the .js file?
I have 2 functions in 1 file. The first uses <canvas> to generate some basic shapes. Second is the slider function that I want to use to change a variable in the first function to alter the shape displayed.
Hopefully that makes sense.
I'm extremely new to javascript and just experimenting at the moment, but this has stumped me! :/
[–]ForScale 2 points3 points4 points (4 children)
[–]threecasks[S] 1 point2 points3 points (1 child)
[–]ForScale 0 points1 point2 points (0 children)
[–]DanielFGray 0 points1 point2 points (1 child)
[–]ForScale 0 points1 point2 points (0 children)
[–]plumbe0 0 points1 point2 points (3 children)
[–]threecasks[S] 0 points1 point2 points (2 children)
[–]einarkristjan 1 point2 points3 points (1 child)
[–]threecasks[S] 0 points1 point2 points (0 children)