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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -