ElixirDoom.Render.Border (elixir_doom v0.2.0)

Copy Markdown View Source

Doom's screen sizes: below size 10 the view is a smaller window centred in the space above the status bar, framed by the border flat and its bevelled edges.

{left, top, inner_width, inner_height} = ElixirDoom.Render.Border.window(8, {640, 336})
rgba = ElixirDoom.Render.Border.rgba(graphics, {640, 336}, {left, top, inner_width, inner_height}, palette)

Summary

Functions

The border around window in a space width by height, as RGBA through palette.

The view's window, {left, top, width, height}, inside a space width by height at screen size blocks.

Functions

rgba(graphics, arg1, arg2, palette)

@spec rgba(ElixirDoom.Graphics.t(), {pos_integer(), pos_integer()}, tuple(), binary()) ::
  binary()

The border around window in a space width by height, as RGBA through palette.

window(blocks, arg)

The view's window, {left, top, width, height}, inside a space width by height at screen size blocks.