There is some started code located on the 242 website
- Use
wget
to download the file at http://cs.longwood.edu/courses/cmsc242/s20/files/perlin.tgz - Uncompress the perlin.tgz file by using
tar -xvzf perlin.tgz
There is some started code located on the 242 website
wget
to download the file at http://cs.longwood.edu/courses/cmsc242/s20/files/perlin.tgztar -xvzf perlin.tgz
Perlin noise is a technique to generate textures (and landscapes) using gradient noise. The textures will be "random" but pixel values change in a gradient manor. Ken Perlin won an Academy Award for his algorithm.
The dcurses library gives us the ability to draw colors to the screen and Perlin noise gives us texture information! We will display a Perlin noise image in the terminal using the 24 colors of grayscale in the ANSI pallet (colors 232-255).
In order to speed up our computation time we will use threads to calculate different parts of the texture in parallel.
Your README should include an analysis of how the number of threads increases or decreases the runtime. Is there a point where more threads runs slower? List out multiple trials (runs) for different numbers of threads.
The easiest path to getting the most points might be:
vector
of Point structs. The vector
should contain all the points from (1,1) to the bounds... ie (1,1) (1,2) (2,1)...This is not your friend’s work. This is not the internet’s work. This is your work...
Submit your code using the handin script, handin cmsc242 lab3 your_directory_name
.
You will need to be in the directory which contains your_directory_name
.
The lab is due at 11:59pm Apr. 10th 2020.