How to fill-in a diamond without PAINT - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Utilities (https://staging.qb64phoenix.com/forumdisplay.php?fid=8) +---- Thread: How to fill-in a diamond without PAINT (/showthread.php?tid=768) Pages:
1
2
|
RE: How to fill-in a diamond without PAINT - bplus - 08-15-2022 "Ahhh, I was wondering what you meant by "step away", and I was thinking you were going to do something with the for..next loop. I forgot about using step in the line command. A very cool solution." Honestly I though I was going to do something in a For loop too, but then I remembered what you said like CircleFill... so fat and skinny is like Rectilinear Ellipse (axis parallel to x, y axis) or skinny and fat circles. RE: How to fill-in a diamond without PAINT - vince - 08-15-2022 nice mod, B+. you know what is interesting? I think that horizontal lines along with LINE ... ,BF with the BF flag included, is faster than vertical lines with or without the BF flag. maybe someone can benchmark to know for sure RE: How to fill-in a diamond without PAINT - SierraKen - 08-15-2022 LOL B+ you are almost reading my mind. In my Explorer game I'm making, with the map scrolling, I've been working on the cave map and the other day I added TONS of diamonds just as decorations and earlier today I made them random colors. I also made a cool looking dragon (a few of the same ones). I'm getting closer to finishing the game. It will probably just have 2 maps and won't be too technical. RE: How to fill-in a diamond without PAINT - bplus - 08-15-2022 Dragon, now your talking! I made a Gorilla do a little jig way, way, way back at Naalaa, we were going to do a remake of Nibbles in Naalaa. Got into the art of throwing bananas, if I remember, I wonder if I could dig up that old piece of code, it'd be on an SD card before I stopped backing up Naalaa? Johnno might remember? It'd be buried way way back in the forum. When you blow up something with a banana, what should it look like? Update: Now for my next trick, translate it into QB64! RE: How to fill-in a diamond without PAINT - vince - 08-15-2022 looks JBesque but not quite -- is this a variant of JB? RE: How to fill-in a diamond without PAINT - OldMoses - 08-15-2022 (08-15-2022, 02:42 AM)vince Wrote: nice mod, B+. you know what is interesting? I think that horizontal lines along with LINE ... ,BF with the BF flag included, is faster than vertical lines with or without the BF flag. maybe someone can benchmark to know for sure Since I know so little about benchmarking, take this with a grain of salt, but this is just comparing horizontals with and without BF. The length of the line seems to make a big difference too. A 2 long line was something like ten times faster in the following: Code: (Select All) SCREEN _NEWIMAGE(1024, 512, 32) RE: How to fill-in a diamond without PAINT - SierraKen - 08-15-2022 LOL awesome B+! Reminds me of the QBasic Microsoft game called Gorillas. QB64 has this game, gor64.bas in the samples/misc folder. RE: How to fill-in a diamond without PAINT - TempodiBasic - 08-15-2022 Diamonds Code: (Select All) ' * | - / \ it seems that using LINE you must use the same number of its high or width... RE: How to fill-in a diamond without PAINT - SMcNeill - 08-16-2022 And a completely different way to do this: Code: (Select All) $Color:32 RE: How to fill-in a diamond without PAINT - James D Jarvis - 08-21-2022 Drawing a filled diamond using the draw command. Two subs each using X,Y, for the top corner, W for width, H for height, ANG for angle from X,Y and color KLR Draw_diamond can leave gaps at some angles Code: (Select All) Screen _NewImage(800, 500, 256) |