-
Notifications
You must be signed in to change notification settings - Fork 146
WIP: [RFC] JDK-8211038: Add css fadein/fadeout functions. #211
base: develop
Are you sure you want to change the base?
Conversation
Iv'e had this on my to-do list for the Java has
CSS has
Apart for the naming confusion (are the CSS names following a reference?), I find the difference in APIs odd. Does CSS not need a general HSBA or S functions? If this RFE's concept is approved, I'll do the same for the |
Making the Java API and css functions lineup makes sense to me. In terms of your question about if the CSS names are following a reference, let me include a snippet of my research on that how I came up with the names for these functions (at the time when I wrote this css did not have functions as such, and I am not sure if things have changed in that regard since web APIs seem to move at light-speed, but CSS pre-processors did and do):
|
I think |
Currently the behavior of |
fadein fadein( <color> , <number>% ) The fadein function takes a color and computes a more opaque version of that color. The second parameter is the opacity, ranging from 0% to 100%. Has no effect on fully opaque colors. Examples: fadein(rgba(35, 70, 112, 0.8), 10%) => rgba(35, 70, 112, 0.88) fadein(rgba(35, 70, 112, 0), 100%) => rgba(35, 70, 112) = rgb(35, 70, 112) fadeout fadeout( <color>, <number>% ) The fadeout functions takes a color and computes a more transparent version of that color. The second parameter is the transparency, ranging from 0% to 100%. Has no effect on fully transparent colors. Examples: fadeout(rgba(35, 70, 112, 0.8), 10%) => rgba(35, 70, 112, 0.72) fadeout(rgba(35, 70, 122), 30%) => rgba(35, 70, 122, 0.7) fadeout(rgb(35, 70, 112), 100%) => rgba(35, 70, 112, 0)
As announced in this message, the official This sandbox repository is being retired on 1-Oct-2019. You will need to migrate your WIP pull request to the openjdk/jfx repo if you want to continue working on it. Here are instructions for migrating your pull request. The updated CONTRIBUTING.md doc has additional information on how to proceed. Once you have done this, it would be helpful to add a comment with a pointer to the new PR. NOTE: since this is a feature / enhancement request it needs to be discussed on the openjfx-dev mailing list if you want it to be considered. The new openjdk/jfx repo will be open for pull requests on Wednesday, 2-Oct-2019. I will send email to the openjfx-dev mailing list announcing this. |
https://bugs.openjdk.java.net/browse/JDK-8211038
The fadein function takes a color and computes a more opaque version of that color.
The second parameter is the opacity, ranging from 0% to 100%. Has no effect on
fully opaque colors.
Examples:
The fadeout functions takes a color and computes a more transparent version of that
color. The second parameter is the transparency, ranging from 0% to 100%. Has no effect
on fully transparent colors.
Examples: