File:Kinegram.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Kinegram.gif (576 × 300 pixels, file size: 2 MB, MIME type: image/gif, looped, 301 frames)

Captions

Captions

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

Summary

[edit]
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

[edit]
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

[edit]
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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current11:35, 21 January 2020Thumbnail for version as of 11:35, 21 January 2020576 × 300 (2 MB)Berto (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata