Efficiently color cycling an image in Java

前端 未结 2 1415
南方客
南方客 2020-11-28 14:44

I\'m writing a Mandelbrot fractal viewer, and I would like to implement color cycling in a smart way. Given an image, I would like to modify its IndexColorModel.

As

2条回答
  •  执笔经年
    2020-11-28 15:09

    I'd use LWJGL (OpenGL interface to Java) with a Mandelbrot pixel shader, and do the colour-cycling in the shader. Far more efficient than using Java2D.

    http://nuclear.mutantstargoat.com/articles/sdr_fract/

提交回复
热议问题