ElixirDoom.Layer (elixir_doom v0.1.0)

Copy Markdown View Source

Drawing over a finished picture: whatever a function draws onto a frame the picture's size is laid over the picture's RGBA, every other pixel left as it was. The function is run on two frames of different colours, so a pixel it drew is known whatever colour it drew in. Rows it drew nothing on are copied whole.

ElixirDoom.Layer.over(rgba, {width, height}, palette, &ElixirDoom.Text.draw(&1, ...))

Summary

Functions

rgba (width by height) with what draw draws laid over it, through palette.

Functions

over(rgba, arg, palette, draw)

rgba (width by height) with what draw draws laid over it, through palette.