linebricks or brickfill - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Utilities (https://qb64phoenix.com/forum/forumdisplay.php?fid=8) +---- Thread: linebricks or brickfill (/showthread.php?tid=1539) |
linebricks or brickfill - James D Jarvis - 03-10-2023 Here's a couple routines to create randomly varying brickfill patterns. There are briefer and mathematically slicker ways to do simple brick patterns but if you want to add a little variation in color and style the code can get a little longer. If you can make use of it feel free. Code: (Select All) 'linebricks RE: linebricks or brickfill - mnrvovrfc - 03-10-2023 This would make very good wallpaper for my Linux desktop for a moment. Only if there were a way to change the position and/or spread of the green bricks. Also the attempt to make it look real with the "cracks". Well done. RE: linebricks or brickfill - TerryRitchie - 03-10-2023 Cool, thanks for sharing. It's fast too. Holding down the spacebar shows how quick everything can be drawn. I normally rely on sprites that can be stitched together to create a brick wall like this. But sprites don't offer the variety a custom piece of code like this can. RE: linebricks or brickfill - James D Jarvis - 03-10-2023 (03-10-2023, 05:03 PM)mnrvovrfc Wrote: This would make very good wallpaper for my Linux desktop for a moment. Only if there were a way to change the position and/or spread of the green bricks. Also the attempt to make it look real with the "cracks". Well done. Thanks. Just change the variables and you and move the brickfill to anywhere on a screen or target image. RE: linebricks or brickfill - James D Jarvis - 03-10-2023 (03-10-2023, 05:04 PM)TerryRitchie Wrote: Cool, thanks for sharing. It's fast too. Holding down the spacebar shows how quick everything can be drawn. I normally rely on sprites that can be stitched together to create a brick wall like this. But sprites don't offer the variety a custom piece of code like this can. I'm planning on using it for the filled in portions of a maze. Changing the bricks form area to area or level to level will break up visual monotony. RE: linebricks or brickfill - SpriggsySpriggs - 03-10-2023 Are there any screenshots? RE: linebricks or brickfill - James D Jarvis - 03-10-2023 (03-10-2023, 07:03 PM)Balderdash Wrote: Are there any screenshots? Sure, it's bricks: |