File:Kinegram.gif

Uploaded by Berto
Upload date 2020-01-21T11:35:32Z
MIME type image/gif
Dimensions 576 × 300 px
File size 2.0 MB

Summary

Description
English: You can create the illusion of movement by sliding a mask over an appropriately prepared image.
Date
Source https://twitter.com/j_bertolotti/status/1219199293770403840
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929

Mathematica 11.0 code

nunits = 30;
nframes = 5;
dim = nframes*nunits;
grid = Table[
   If[IntegerQ[j/nframes], Table[1, {dim}], Table[0, {dim}]], {j, 1, 
    dim}];
frames = Table[
   Sum[RotateRight[DiskMatrix[20, dim], {Round[40 Cos[(j \[Pi])/2 - \[Theta]]], Round[40 Sin[(j \[Pi])/2 - \[Theta]]]}], {j, 1, 4}], {\[Theta], 0, \[Pi]/2 - 0.01, \[Pi]/(2*nframes)}];
image = Sum[RotateRight[grid, {j - 1, 0}]*frames[[j]], {j, 1, nframes}];
p1 = Table[ArrayPlot[Transpose[RotateRight[ArrayPad[grid, {{150, 0}, {0, 0}}, 1], {j, 0}]*Abs[ArrayPad[image, {{150, 0}, {0, 0}}] - 1]], ColorFunction -> GrayLevel, ImageSize -> Large], {j, -150, 150}];
ListAnimate[p1, 15]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

You can create the illusion of movement by sliding a mask over an appropriately prepared image.

Items portrayed in this file

depicts

20 January 2020