How do you set the seed?
Posted: 2019-04-15T17:14:48-07:00
Hello!
I'd like to be able to reuse a plasma fractal that was generated. It looks like you can change the seed in ImageMagick, but how do you do it with Imagick?
The code:
More details: Plasma fractals generate nifty images that change when I refresh the script. I would like them to not change (without having to save the images to my server) by being able to conrol whatever value is being randomly generated. This would allow me to reuse previously generated fractals.
I'd like to be able to reuse a plasma fractal that was generated. It looks like you can change the seed in ImageMagick, but how do you do it with Imagick?
The code:
Code: Select all
$test = new Imagick();
$test->newPseudoImage(400, 400, 'plasma:fractal');
$img->compositeImage($test, Imagick::COMPOSITE_ATOP, 0, 0);