Amulet setup module for LowRez rendering
In your main.lua
for an Amulet project:
local lowrez = require'lowrez'
local window = lowrez.window{ ... }
...
options are, with defaults:
width = 64
-- lowrez 4K pixel displayheight = 64
-- lowrez 4K pixel displayscale = 8
-- scale factor for initial window sizeclear_color = vec4(0,0,0,1)
-- display background color
Setting .scene
on a lowrez.window
works just like a regular window
, but
also takes care of postprocessing for proper pixelated scaling.
am.load_script'hello.lua'(window)