copy_image_transform(3)
π copy_image_transform(3) π
okay bestie, so this is a page from the Arcan Lua API manual, and it's literally about cloning the whole vibe of one VID's transform chain onto another VID. no cap, it's giving "copy-paste but make it dramatic." π
β¨ NAME β¨
copy_image_transform β duplicate the transform chain of one VID and transfer it to another. yes, that's the whole errand. π
πΈ SYNOPSIS πΈ
nil
copy_image_transform( srcvid, dstvid )
like, it returns nil (nothing, zilch, the void π«Ά) and it takes two VIDs. that's it.
π¦ DESCRIPTION π¦
so what happens is: this function traverses the entire transform chain of srcvid, copying each and every transform step β¨ and then attaches that whole copied chain to a brand-new chain in dstvid. it's like handing your bestie your entire playlist instead of just one song. iconic behavior, honestly. π₯
π NOTES π
- this will also initiate a recursive rendering re-order. yeah. it ripples. π
- this will irrevocably alter the
origwandorighproperties in the destination order β and it does that on purpose, so that the scale transform is actually usable. can't skip this part, bestie, it's load-bearing. π - the original transform chain in the destination VID will be removed. gone. deleted. not coming back. π
srcanddstcannot be the same VID. no self-copying. we don't do that here. β- transformations are stored relative of the source object's coordinate space and β with the exception of
scaleβ they won't be translated. so heads up on that. π
okay real talk: notes 2 and 3 are the ones that will catch you slipping. the destination's old chain is straight-up yeeted andorigw/orighget changed permanently. proceed with main character energy but, like, read them first. π
π EXAMPLE π
function copy_image_transform0()
a = fill_surface(32, 32, 255, 0, 0);
blend_image(a, 0.5);
move_image(a, 200, 200, 100);
rotate_image(a, 350, 100);
blend_image(a, 1.0, 100);
b = fill_surface(32, 32, 0, 255, 0);
copy_image_transform(a, b);
instant_image_transform(a);
end
see how a gets all dolled up with blends, a move, and a rotate π§ and then the whole look gets copied straight onto b? that's the whole slay. and then instant_image_transform(a) just sends it. β‘
π MISUSE π
function copy_image_transform0()
a = fill_surface(32, 32, 0, 255, 0);
copy_image_transform(a, a);
end
ma'am. a and a? that's a note-4 violation, bestie β src and dst cannot be the same VID. π
π MISUSE π
function copy_image_transform1()
copy_image_transform(-10, nil);
end
-10 and nil are not it. nope. not valid VIDs, not valid vibes. π
π SEE ALSO π
copy_surface_properties(3)β your other bestie for copying surface stuff around. go say hi. π«Ά
and that's the page!! πΈ this was brought to you by the image manual source, dated October 2026 β mwah, stan, bye! π β¨π
π¦ 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