icon

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package icon draws the kisaf app icon.

The artwork is code rather than a committed .png/.ico for two reasons: the repository stays entirely text (readable diffs, no binary blobs), and there is no "run the icon generator first" step between `git clone` and `go build`. Images are rendered on demand and cached, so the cost is paid once per size per process — a few milliseconds — and never again.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ICO

func ICO() ([]byte, error)

ICO returns a multi-resolution Windows icon.

func PNG

func PNG(size int, inset float64) ([]byte, error)

PNG returns the icon at the given pixel size, encoded as PNG. inset > 0 shrinks the artwork and squares off the tile, which is what a maskable PWA icon needs so a launcher can crop it to any shape.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL