ElixirQuake.Menu.Draw (elixir_quake v0.1.0)

Copy Markdown View Source

Quake's menus drawn as Quake draws them, on a 320 by 200 canvas whose colour 255 is see-through: the plaque and title pictures, the spinning cursor, options with their sliders and switches, the controls with their keys, the help pages and the quit box.

ElixirQuake.Menu.Draw.canvas(menu, seconds)

Summary

Functions

The menu, with the settings it holds, on a see-through 320 by 200 canvas, at time seconds for its animations.

Every other pixel of frame set to colour 0, as Quake darkens the game behind a menu.

Functions

canvas(menu, time)

@spec canvas(ElixirQuake.Menu.t(), number()) :: Cauldron3D.Frame.t()

The menu, with the settings it holds, on a see-through 320 by 200 canvas, at time seconds for its animations.

fade(frame)

Every other pixel of frame set to colour 0, as Quake darkens the game behind a menu.