Skip to content

fix: Clamp mouse over color#609

Merged
alex-y-z merged 3 commits intomainfrom
users/alex-y-z/misc-fixes
Nov 25, 2025
Merged

fix: Clamp mouse over color#609
alex-y-z merged 3 commits intomainfrom
users/alex-y-z/misc-fixes

Conversation

@alex-y-z
Copy link
Collaborator

No description provided.

factor = factor or 1
local h, s, v = Color3.toHSV(originalColor)
return Color3.fromHSV(h, s, v - 0.05 * factor)
return Color3.fromHSV(h, s, math.max(v - 0.05 * factor, 0))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try math.clamp(v - 0.05 * factor, 0, 1) for even more safety

@alex-y-z alex-y-z merged commit 887ef37 into main Nov 25, 2025
10 checks passed
@Quenty
Copy link
Owner

Quenty commented Nov 25, 2025

🚀 PR was released in @quenty/buttonutils@2.3.1, @quenty/mouseovermixin@10.9.1 🚀

@Quenty Quenty added the released This issue/pull request has been released. label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants