maxSize
untyped bigintmaxSize bounds every pattern's size parameter so a single Generate call can't blow the block gas limit on a pathologically large grid.
Value
(32 <untyped> bigint)
galleryPageSize
untyped bigintgalleryPageSize caps how many pieces Render shows on the home page.
Value
(8 <untyped> bigint)
piece
typepiece carries no ID field: the id belongs to the store, which hands it back on lookup and iteration.
Value
v1.piece
gallery
*v0.Storegallery assigns the piece ids. v1 kept its own nextID plus a padID() that zero-padded to width 6, the narrowest ceiling in this repo: at the millionth piece the padding stops and the gallery starts rendering out of order. The store key is 8 fixed bytes with no width to outgrow.
- OID
- 0b977c…8ee2:4
gallery details
RenderDiamond
func(n int) stringRenderDiamond draws a filled diamond of half-width n (2n-1 rows total), each row's stars centered and padded with spaces.
- OID
- 0b977c…8ee2:7
RenderDiamond details
RenderPyramid
func(n int) stringRenderPyramid draws a solid triangle n rows tall, widening by two stars per row and centered with leading spaces.
- OID
- 0b977c…8ee2:9
RenderPyramid details
RenderSierpinski
func(n int) stringRenderSierpinski draws a Sierpinski triangle in an n x n grid (n must be a power of two): cell (row, col) is filled exactly when row&col == 0, the classic bitwise identity for Pascal's-triangle-mod-2.
- OID
- 0b977c…8ee2:10
RenderSierpinski details
RenderChecker
func(n int) stringRenderChecker draws an n x n checkerboard of # and . cells.
- OID
- 0b977c…8ee2:11
RenderChecker details
renderPattern
func(pattern string, size int) string- OID
- 0b977c…8ee2:12
renderPattern details
Generate
func(pattern string, size int) stringGenerate renders a pattern, adds it to the on-chain gallery, and returns the rendered art.
- OID
- 0b977c…8ee2:13
Generate details
renderHome
func() string- OID
- 0b977c…8ee2:14
renderHome details
renderPiece
func(idStr string) string- OID
- 0b977c…8ee2:15
renderPiece details
Render
func(path string) stringRender shows the pattern guide + gallery at "", or one piece by numeric ID.
- OID
- 0b977c…8ee2:16