Skip to content

Update Color.scala#311

Closed
corkine wants to merge 3 commits into
scalafx:masterfrom
corkine:master
Closed

Update Color.scala#311
corkine wants to merge 3 commits into
scalafx:masterfrom
corkine:master

Conversation

@corkine

@corkine corkine commented Sep 22, 2019

Copy link
Copy Markdown

SFX Color.grayRgb is used to wrap the grayRgb method in JavaFX. Unlike JFX's gray method, grayRgb is of type Int and has a range of 0 - 255, which corresponds to 0.0 - 1.0 of the Double type of gray. The current SFX delegates grayRgb directly to gray, and the Int type is converted and automatically converted to Double, which is wrong and cannot be checked by the checkRGB method.

SFX Color.grayRgb is used to wrap the grayRgb method in JavaFX. Unlike JFX's gray method, grayRgb is of type Int and has a range of 0 - 255, which corresponds to 0.0 - 1.0 of the Double type of gray. The current SFX delegates grayRgb directly to gray, and the Int type is converted and automatically converted to Double, which is wrong and cannot be checked by the checkRGB method.

@corkine corkine left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

''

@jpsacha jpsacha added the bug label Sep 25, 2019
@jpsacha jpsacha added this to the 12-R19 milestone Sep 25, 2019
@jpsacha

jpsacha commented Sep 25, 2019

Copy link
Copy Markdown
Member

Thanks for fixing the bug

@jpsacha jpsacha closed this Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants