Watch an arrow print in stars: a head that narrows to the tip and a three-row shaft, from one condition on each cell.
About this algorithm
The arrow points right: a triangular head from column 4 to a tip on the middle row, and a shaft three rows thick from the left edge. An OR joins the two parts into one condition.
Try it once the pyramid and diamond feel easy. It shows how to draw a shape made of two parts by combining two tests.
The arrow is 9 rows by 9 columns at every size: the slider does not change it.
tip = 8 - |i - 4|: the middle row reaches column 8, and the rows above and below reach one column less each.
A cell is a star when j <= tip and either j >= 4 (the head) or 3 <= i <= 5 (the shaft).
Stars per row: 1, 2, 3, 8, 9, 8, 3, 2, 1, which is 37 stars and 44 spaces in 81 cells.
Read the test from right to left. j <= tip keeps every star inside the outline of the head, which also cuts the shaft off one column short on rows 3 and 5. The OR then decides which cells inside that outline get a star: everything from column 4 rightwards (the head), plus the whole row on the three shaft rows. Changing 3 and 5 changes how thick the shaft is.
To point the arrow left, mirror the columns: replace j with 8 - j everywhere in the test. To point it down, swap the roles of i and j.
Time: every one of the 81 cells gets one test. Space: the test needs only i, j and the row's tip.