I was looking into the Diamond-square algorithm for some idea, but I ended up writing a make-shift-like code.

They are not perfect, but all I wanted was a smooth texture. So, I have:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_NYyqvx-3Hb5NeQ3d664Y-XJ1DErSFXJxj4bhiE246V82wm12Q2KG2gwbtS8INRUckolGcZc8P9sVYMsoVYBzCvuHm9_sIE6JUblNrrJ8jRvqrkWanoyhSRME0eoBAtJ566r3cUHJYQM/s800/blue-ocean.sh.gif

Blue ocean

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrzbdQp6h0dUP2fXV2yTsGYAyb8nfi9vQYx5G1xOehMTW_Sbuocv8PRTsRhF8CdIU3epbBKz2ufb1nqnBpB76UIPt7znjCEqbO2awp7SNRgx-hhzEl84jI4RLyp_RyeP4mlvtzWiYPYl0/s800/gray-canyon.sh.gif

Gray canyon

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1tq7VV8UpJupOu9sZqBLRqK6RB8Fymt-6FZ9IybkSZkCeIHckjvxkImHT6kg9lEFcB8pSlTwcLIIkJXGIrXJ60gNKaghjPa6swHuZSQGGwwjrEAKTT7HOM85H_SmDYQATrikgeQHICU8/s800/rainbow.sh.gif

Rainbow

All three codes are basically the same, only difference is in the color scales.

Originally, I was hoping there was a very simple library utilizing the Diamond-square algorithm, you input the parameters and get the generated data. Unfortunately, didn’t really see any. So, I just randomly added something and the result looked quite okay to me.