Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

asciiart/v0 package

Overview

Package asciiart is a small on-chain ASCII art generator. Instead of a hand-authored font table, each pattern is produced by a short, pure, deterministic algorithm -- e.g. the Sierpinski triangle falls out of a single bitwise AND over row/column indices. Callers pick a pattern and a size; the realm renders it and keeps a gallery of everyone's generations.

Function

RenderPyramid

func RenderPyramid(n int) string

RenderPyramid draws a solid triangle n rows tall, widening by two stars per row and centered with leading spaces.

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/asciiart/v0.RenderPyramid()"

Result