Watch a hollow diamond print in stars: every cell the same distance from the centre gets a star, the rest stays blank.
About this algorithm
The hollow diamond prints only the outline of the diamond: four slanted edges meeting at the top, bottom, left and right, with blanks inside. One test on the distance from the centre draws all four edges.
Do it after the diamond and the hollow pyramid. The diamond fills every cell near enough to the centre; the hollow diamond keeps only the cells at exactly the edge distance, so it is the shortest way to see what "distance from the centre" means.
The page uses 2n - 1 rows and 2n - 1 columns, with the centre at row n - 1, column n - 1.
Count the rows and the columns a cell is away from the centre: |i - (n - 1)| + |j - (n - 1)|.
A cell is a star when that count is n - 1. Cells nearer the centre are inside the diamond, cells further away are outside it, and both stay blank.
A 5 by 5 grid with the centre at row 2, column 2. Rows print 1, 2, 2, 2 and 1 stars, which is 8 stars and 17 spaces in 25 cells. Move the slider to n = 5 for the 9 by 9 outline, 16 stars.
The solid diamond is every cell at most n - 1 steps from the centre. Changing <= to == keeps only the outline, the same move that turns the pyramid into the hollow pyramid.
At n = 3 the outline is 5 by 5, the size the star patterns reel prints it, so the page opens on the shape from the reel.
Time: every cell of the (2n - 1) by (2n - 1) grid gets one test, roughly 4n² in total. Space: the distance is worked out from i, j and n for each cell.