null_surface(3)
null_surface(3) π β¨
okay so bestie, welcome to the Arcan Lua API page for null_surface β we're gonna make a minimalistic video object and it's gonna be iconic. π
πΈ NAME πΈ
null_surface β create a minimalistic video object. periodt. π
π SYNOPSIS π
vid
null_surface( startw, starth )
Yeah, return type vid, args startw and starth. Slay. β¨
π DESCRIPTION π
So null_surface creates a normal textured video object, but it has no backing store β which means it will not be rendered in the normal draw pass. It can still be used for clipping operations though, so it's not just sitting there looking pretty. π
Its main-character use is as an intermediate stage before you use image_sharestorage to share the backing storage between two objects. And the null_sueface (yes, that spelling is in the original, don't come for me π) is also useful as a property anchor for creating object hierarchies. π¦
π NOTES π
- The
intialstarting dimensions still need to be specified in order for other lookup functions, e.g.image_surface_initial_properties, to work properly. Like, don't skip the starting size, bestie. πΈ
dependencies
π₯ EXAMPLE π₯
Here's the example, copied exactly β including moev_image, no cap, that's literally what it says π:
function null_surface0()
a = null_surface(32, 32);
b = fill_surface(32, 32, 255, 0, 0);
show_image(b);
link_image(b, a);
moev_image(a, 100, 100, 100);
blend_image(a, 1.0, 100);
end
π MISUSE π
The original just gives this code block, so here it is exactly, bestie β this is the misuse section, so like, don't do this π«Ά:
function null_surface0()
a = null_surface();
a = null_surface(-1, -1);
end
π SEE ALSO: π
Signed off with love by the image docs β source/version image, date October 2026, page null_surface(3) π«Άπβ¨
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms