How to fill-in a diamond without PAINT
#5
Thanks for telling me about the not-needed .25. I was just so used to filling in circles that way. Here is my updated version. I haven't tried yours yet. I also changed 2 variable names to make it clearer. Plus I took your size variable idea and made it into mine. Smile 

Code: (Select All)
Screen _NewImage(800, 600, 32)
x = 400
y = 300
size = 100

For a = 0 To size / 2
    Line (x + a, y + a)-(x - a, y + a)
Next a
For b = size / 2 To 0 Step -1
    Line (x + b, y - b + size)-(x - b, y - b + size)
Next b
Reply


Messages In This Thread
RE: How to fill-in a diamond without PAINT - by SierraKen - 08-14-2022, 07:33 PM



Users browsing this thread: 7 Guest(s)