How to use JavaFX in Processing 4?

Hello,

There is a comment about this buried in here:

Install the library:

In your code:

import processing.javafx.*;

void setup() 
  {
  size(640, 480, FX2D);
  background(0);
  stroke(255);
  }


void draw() 
  { 
  //Your code...
  }
  

UPDATED 2022-06-30 References above updated.

:)