Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

1. Which position would you take?

Answered: 1 week ago