-
Notifications
You must be signed in to change notification settings - Fork 7
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
Validate your input ranges and throw errors #3
Comments
i might do that for the HSV2HSL function but the main one does not really have max and min's. But it might be practical to do something like that: https://github.com/bit101/quicksettings export const optionsAndRanges = {
curveMethod: [
'lamé', 'arc', 'pow', 'powY', 'powX'
],
curveAccent: {
min: -0.095, max: 1, step: 0.001
},
colors: {
min: 3, max: 35, step: 1
},
centerHue: {
min: 0, max: 360, step: 0.1
},
hueCycle: {
min: 0, max: 1.5, step: 0.001
},
offsetTint: {
min: 0, max: 0.4, step: 0.001
},
offsetShade: {
min: 0, max: 0.4, step: 0.001
},
offsetCurveModTint: {
min: 0, max: 0.4, step: 0.0001
},
offsetCurveModShade: {
min: 0, max: 0.4, step: 0.0001
},
tintShadeHueShift: {
min: 0, max: 1, step: 0.001
},
minSaturation: {
min: 0, max: 1, step: 0.001
},
minLight: {
min: 0, max: 1, step: 0.001
},
maxSaturation: {
min: 0, max: 1, step: 0.001
},
maxLight: {
min: 0, max: 1, step: 0.001
},
}; It would be easy to import to use with a settings panel like in the demo or something like |
meodai
added a commit
that referenced
this issue
Sep 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
The text was updated successfully, but these errors were encountered: