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

Clamp and hsb colors #582

Merged
merged 5 commits into from
Dec 1, 2024
Merged

Clamp and hsb colors #582

merged 5 commits into from
Dec 1, 2024

Conversation

RhoSigma-QB64
Copy link
Member

@RhoSigma-QB64 RhoSigma-QB64 commented Nov 30, 2024

Adding _CLAMP and several HSB colorspace functions. The color functions are a quick adaption from one of my libraries added into the internal/support/include/afterlastline.bm auto-include. I felt they are worth to go into v4.0.0.

- also adapted _MIN/_MAX to use the new _IIF function
- helper functions _HSBtoRGB and _RGBtoHSB for conversion
- convenience functions _HSB32, _HSBA32 and _HUE32, _SATURATION32, _BRIGHTNES32 in symetry to the RGB functions
@RhoSigma-QB64 RhoSigma-QB64 added the enhancement New feature or request label Nov 30, 2024
@RhoSigma-QB64 RhoSigma-QB64 self-assigned this Nov 30, 2024
- argument s$ wasn't used, since the token is DIM SHARED and accessed directly in the function
@RhoSigma-QB64 RhoSigma-QB64 merged commit eeb277e into main Dec 1, 2024
4 checks passed
@RhoSigma-QB64 RhoSigma-QB64 deleted the clamp-and-hsb-colors branch December 1, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants