by SixLetter (3 Submissions)
Category: Graphics
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)
This code uses the same algorithm (Iterative Square Subdivision) to create either clouds or landscapes. In addition, it could be used to create plasma fractals and 3D mountain landscapes. This is all done randomly, so each picture is unique. I have also added the capability to save the picture. I have added my version of the save routine using common dialog.
API DeclarationsPrivate Declare Function SetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal Y As Long, ByVal crColor As Long) As Long