Try changing PSurfaceFX into a normal PSurface. Since you didn‘t define the sketch differently in size() it should be default, and i doubt the default is fx, and more likely to be an AWT if it‘s Java2D… Anyway, FX probably isn‘t needed for the surface, so just change the Class from FX to the normal variant.
Hello! Thank you for your help, but I just realized I said “javaFX” instead of “postFX”.
Oh… you mean postFx the Library by cansik?
yes postFX. idk if cansik made it.
Then read the Code here :
It perfectly shows how Bloom effect is implemented.
Just add the 3 lines with fx to your code. Note, the third one is split in 4 lines.
2 Likes
see also
1 Like
Thank you !!!
2 Likes
Late to this party, but I have some JavaFX code inside of P5 JAVA to share if anybody finds this helpful. The only note I wanted to add to this thread is often times I work with FX2D in my setup() call.
FIXLIB can be found here, but there’s really no JavaFX specifics in there.
1 Like