Cauldron2D.Sectors.Overlay (Cauldron2D v0.2.2)

Copy Markdown View Source

A picture drawn flat on the frame, stretched to a rectangle: a held weapon, a status bar, a face, a menu.

frame
|> Frame.columns(pictures, Overlay.columns(pictures, gun, {96.0, 120.0, 128.0, 80.0}, 0))

The rectangle is {x, y, width, height} in frame pixels, fractions allowed, the picture filling it exactly. Transparent texels are skipped. light is the light table every texel goes through. Options: flip: true mirrors the picture; shimmer: true draws it as a blur of what is beneath, through light.

Summary

Functions

The column records that draw picture id into rect.

Functions

columns(pictures, id, arg, light, opts \\ [])

The column records that draw picture id into rect.