How to fill-in a diamond without PAINT
#1
After trial and error, I figured out a way to make filled-in diamonds using the LINE command and loops and without PAINT. I'm going to add this in my Explorer game.

If anyone needs this, you can use this code. Feel free to make it any size, shape, whatever. Smile 

Code: (Select All)
Screen _NewImage(800, 600, 32)
x = 400
y = 300
For xx = 0 To 20 Step .25
    Line (x + xx, y + xx)-(x - xx, y + xx)
Next xx
For yy = 20 To 0 Step -.25
    Line (x + yy, y - yy + 40)-(x - yy, y - yy + 40)
Next yy
Reply


Messages In This Thread
How to fill-in a diamond without PAINT - by SierraKen - 08-14-2022, 02:19 AM



Users browsing this thread: 5 Guest(s)