(05-09-2023, 07:55 PM)CharlieJV Wrote:(05-09-2023, 07:22 PM)bplus Wrote: Oh yours looks like tiling on a slant, with pixel offsets?, as opposed to filling "character cells" straight up and down or across fills.
I will try that...
Do you suppose an 8x8 cell is ideal for neat looking designs? Is you Random fill 50/50?
That should be an easy question to answer, but I'm struggling.
...
Now for chunk 2:
Code: (Select All)
PrintTiles:
ptrn% = INT(RND*3)
FOR i = 1 TO 80
SELECT CASE ptrn%
CASE 0
PRINT CHR$(0) + CHR$(0) + CHR$(1);
CASE 1
PRINT CHR$(0) + CHR$(1) + CHR$(0);
CASE 2
PRINT CHR$(1) + CHR$(0) + CHR$(0);
END SELECT
NEXT i
RETURN
Not much special here. Print (note the semi-colon to do no carriage return) groups of three characters 80 times.
In another bit of code, the first line is made to be blank. 3 characters 80 times, 240 characters in all. At 20 characters per row, 12 rows of characters. (screen being 160 pixels wide by 112 pixels tall. Reference: BAM's screen modes.)
Code: (Select All)
SCREEN _NEWIMAGE(160, 112, 14)
Before going into the loop, we pick a pattern to use (0, 1, or 2).
I like the "rule of thirds" in photography, so each pattern has the "diagonal-flippy character" once, and the other two characters are the straight generated one.
The idea here is to make sure that however number of characters in the pattern, the total number of character-width of the screen cannot be divided neatly (i.e. there will be a remainder) by the number of characters in the pattern. So we never have a column of text with the one character repeated throughout. That makes for a more interesting pattern.