planetis-m / naylib

Yet another raylib Nim wrapper
MIT License
209 stars 11 forks source link

Use float ranges in parameters only #12

Closed planetis-m closed 2 years ago

planetis-m commented 2 years ago

setWindowOpacity opacity [0.0..1.0] fade alpha goes from 0.0 to 1.0 colorFromNormalized normalized: Vector4 would need a special type ColorFromHSV hue [0..360], saturation/value [0..1] colorAlpha alpha goes from 0.0f to 1.0f

setAudioStreamVolume volume ? setAudioStreamPitch 1.0 is base level, 0.0 < pitch setAudioStreamPan 0.0 <= pan <= 1.0

planetis-m commented 2 years ago

colorFromNormalized, ColorFromHSV, setAudioStreamVolume? do not perform range checks. The rest are normalized internally and don't need them.