Skip to content

Instantly share code, notes, and snippets.

@iani
Last active February 15, 2019 17:20
Show Gist options
  • Save iani/a40f102abe4d565302cb87e15930f2e8 to your computer and use it in GitHub Desktop.
Save iani/a40f102abe4d565302cb87e15930f2e8 to your computer and use it in GitHub Desktop.
Compmus Lesson 7 notes

Using sliders + Range Sliders

Look into ControlSpec, to translate from range 0-1 to any range.

Example:

~mySpec = ControlSpec(-10, 5); // map to any desired range

// take the value, and map it to the desired range:

~mySpec.map(aSlider.value);

Example of a gist: https://gist.github.com/vasilisioakeimidis

But: We want git repos.

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