Last active
March 2, 2021 13:24
-
-
Save bradmartin333/9fba4fe35534e308c74abb7defb2c496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For row = 1 To 8 | |
For col = 1 To 8 | |
Dim bmp As Bitmap = New Bitmap(1100, 1100) | |
For i = 100 To 1000 Step 200 | |
For j = 100 To 1000 Step 200 | |
If Rnd() > 0.5 Then | |
For k = j To j + 100 Step 10 | |
Using g As Graphics = Graphics.FromImage(bmp) | |
g.FillRectangle(New SolidBrush(Color.Black), New Rectangle(i, k, 100, 5)) | |
End Using | |
Next | |
End If | |
Next | |
Next | |
bmp.Save("$MYDIR$/_R" & row & "_C" & col & ".png") | |
Next | |
Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment