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

Fix: RGBA calculations && issue 5540 #5544

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

kjk7034
Copy link
Contributor

@kjk7034 kjk7034 commented Jan 11, 2024

Fix 1 : add "/" to RGBA calculations

When calculating RGBA, errors occur in the following cases:

Success: rgb(255, 0, 255, 1)
Failure: rgb(255, 0, 255 / 1)

Upon executing 'rgb(255, 0, 255/ 1),' the expected result is {r: 255, g: 0, b: 255, a: 1}, but the actual result is {r: 255, g: 0, b: 2551, a: 1}.

commit : 3caefc4

Fix 2 : error in the expression caused by missing parentheses

Resolved the issue: #5540

commit : b941c67

@kjk7034 kjk7034 changed the title Fix: add "/" to RGBA calculations Fix: RGBA calculations && issue 5540 Jan 11, 2024
@rtivital rtivital merged commit ba932ea into mantinedev:master Jan 17, 2024
1 check passed
@rtivital
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants