colors - Apply grayscale effect to a javafx application -
is possible apply effect whole application change color? apply grayscale example.
i have seen [coloradjust][1] effect i'm not sure can use grayscale effect.
in fact, it's pretty simple. apply effect whole application, use seteffect method on root node. grayscale effect, set saturation of coloradjust value -1
coloradjust grayscale = new coloradjust(); grayscale.setsaturation(-1); stage.getscene().getroot().seteffect(grayscale);
Comments
Post a Comment