class

ContributorMural::Renderers::Honeycomb

Inherits ContributorMural::Renderer < Reference < Object

Hex-clipped avatars in offset rows, like a honeycomb wall. Pointy-top hexagons: width = cell_size, height = cell_size * 2/√3, odd rows shift half a cell right and hold one less item.

Constants

CLIP_ID = "hex-clip"
CLIP_POINTS = "0.5,0 1,0.25 1,0.75 0.5,1 0,0.75 0,0.25"

Fractions of the bounding box for a pointy-top hexagon.

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