Question: I have the method (java) for drawing mandelbrot below, and it works when I enter the colormap I want( fx blues.mnd), but I would like
I have the method (java) for drawing mandelbrot below, and it works when I enter the colormap I want( fx blues.mnd), but I would like it to choose a random colormap, if I don't enter a specific file, how can that be done?



public static void MandelBrot(int colors ){ StdDraw.setCanvasSize(GRID, GRID); StdDraw.setXscale(0, GRID); StdDraw. setYscale(0, GRID); StdDraw.setPenRadius(1.0/GRID); StdDraw. text(GRID/2, GRID/2, "Creating mandelbrot." StdDraw. show(0); forC int i -0 i GRID; i) for( int j= 0; j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
