HTML5 Canvas to JAVAFX canvas

Viewed 283

I port my game from HTML5 Canvas to JAVAFX canvas, but i had problem in this part

canvasHTML.globalCompositeOperation = "destination-out";

And i dont know how i can reach this line in code in JAVAFX Canvas, because there is only method

javafxCanv.setGlobalBlendMode(BlendMode)

I take a look at BlendMode enums, but there isnt DEST_OUT :(, can somone help me how to handle "destination-out" ? I needed this to clear custom shape on my canvas

0 Answers
Related