Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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; jStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started