image_children(3)
π NAME π
okay so welcome to image_children(3), bestie β yes, thatβs the page name, and it lives in the Arcan Lua API manual. this function is here to list the objects in a context that has the specified object as a direct parent. slay. β¨
β¨ SYNOPSIS β¨
vidtbl or bool
image_children( vid, searchvid )
the return vibe is vidtbl or bool, and the call is literally image_children( vid, searchvid ). π
π¦ DESCRIPTION π¦
so hereβs the tea, no cap: this function provides either a list of immediate descendants β the images linked TO vid β or, when searchvid is provided, it recursively scans and tests if vid is related to searchvid. thatβs the whole mechanic, periodt. π
π EXAMPLE π
first one: three null surfaces walk into a bar β jk, itβs a, b, and c β then it links b to a and c to b. after that it grabs image_children(a) into tbl and prints every v from ipairs(tbl). iconic behavior:
function image_children0()
a = null_surface(1, 1);
b = null_surface(1, 1);
c = null_surface(1, 1);
link_image(b, a);
link_image(c, b);
tbl = image_children(a);
for i,v in ipairs(tbl) do
print(v);
end
end
π EXAMPLE π
second one: now there are four null surfaces, a, b, c, and d. it links c to b, links b to a, then does image_children(c, a) into positive and image_children(d, a) into negative. then it prints both. the whole flex:
function image_children1()
a = null_surface(1, 1);
b = null_surface(1, 1);
c = null_surface(1, 1);
d = null_surface(1, 1);
link_image(c, b);
link_image(b, a);
local positive = image_children(c, a);
local negative = image_children(d, a);
print(positive, negative);
end
π MISUSE π
okay bestie, do not do this one. this is the misuse block, and itβs exactly as written β including image_childen(BADID), so watch that spelling:
function image_children0()
image_childen(BADID);
end
π«Ά SEE ALSO π«Ά
image_parent(3)β go give it a read too, bestie, itβs right there in the see-also list. π
and thatβs the whole page, bestie: image_children(3), from the image source/version, dated October 2026. now go forth and link those images. mwah ππ¦
π¦ 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