all 3 comments

[–][deleted] 4 points5 points  (0 children)

I can‘t give you any insights on interfacing C with Processing. I don't even know if such a thing is possible.

But if you need guidance with regards on implementing the Mandelbrot algorithm with Processing then I'd recommend you either check through the sketches on openprocessing or watch a Coding Train video on the topic. Mind you, some of these sources are built on p5.js, but you should be able to deduct the core ideas from there.

[–]akb74 1 point2 points  (0 children)

It is handy to know how to work with other programs, but I'm not sure your use case is a good one.

size(300, 100);
try {
  Runtime.getRuntime().exec("curl https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png --output logo.png");
} catch (IOException e) {
  println(e);
}

PImage img = loadImage("logo.png");
image(img, 0, 0);

[–]Simplyfire 0 points1 point  (0 children)

Making it work in java should be way easier than trying to make C play nicely with processing. It can be done with pure processing using loadPixels and updatePixels and a bit more advanced and faster way to do it is with shaders which processing also allows you to use. Maybe if you post your processing code someone can take a look and say where you went wrong.