class

ContributorMural::Renderers::Mosaic

Inherits ContributorMural::Renderer < Reference < Object

Weight-tiered collage: heavier users occupy larger squares. Tier spans come from weight rank across the whole render (top fraction gets tiers[0], and so on); each section is packed first-fit onto its own unit grid in list order, so placement is deterministic and follows the configured sort.

Constants

CLIP_ID = "cell-clip"

Instance methods

fetch_size(user : ResolvedUser) : Int32

Pixel size at which to fetch this user's avatar (2x render size for crisp display on high-DPI screens).

Source
prepare(users : Array(ResolvedUser)) : Nil

Called with the full user list before avatars are fetched, so renderers with relative sizing (mosaic tiers) can precompute per-user sizes.

Source