module

Vug::PlaceholderGenerator

Generates default SVG favicons when no real favicon is found Creates a simple colored circle with the first letter of the domain

Constants

CIRCLE_RADIUS = 90
COLORS = ["#FF6B6B", "#4ECDC4", "#45B7D1", "#96CEB4", "#FECA57", "#FF9FF3", "#54A0FF", "#5F27CD", "#00D2D3", "#FF9F43", "#10AC84", "#EE5A24", "#0ABDE3", "#BE6DA7", "#A3CB38"]

Color palette for different domains (consistent based on domain hash)

CORNER_RADIUS = 20
FONT_SIZE = 120
HASH_SEED = 5381_u64

DJB2 hash seed constant (Daniel J. Bernstein)

SVG_SIZE = 256

SVG placeholder dimensions

TEXT_Y_OFFSET = 156

Class methods

generate_for_domain(domain : String) : Tuple(Bytes, String)
Source