中文释义:
你熟悉《复仇者联盟》中撒诺斯打响指后的解体效果吗?我想把这种效果应用到我上传的 PNG 图片上。你能帮我把它转换成视频吗?使用透明图层中的像素,将它们组合成 4×4 像素的块。然后,给每个块一个索引。在每一帧中,随机选择几个图块。然后将这些块向左平移。继续这样做,直到所有图块都离开图像,只剩下空白图像。使用 imageio 库来帮助你。将帧直接保存到视频文件中,而不是保存到列表中。
英文提示词:
Are you familiar with the disintegration effect from Avengers after Thanos snaps his fingers? I want to apply this effect to the PNG image I uploaded. By turning it into a video, can you do it for me? Using the pixels from the transparent layer, group them into blocks of 4×4 pixels. Then, give each block an index. For each frame, several blocks at random. Then translate those blocks to the left. Keep doing this for the frames until all the blocks have left the image, and only a blank image remains. Use the imageio library to help you. Save the frames directly to a video file instead of into a list.