• Remix
  • Share
  • New Entry

on 29 Nov 2023
  • 6
  • 16
  • 2
  • 0
  • 192
drawframe(1);
map = 21×3
0.9500 0.9500 0.9500 0 0 0.7500 0 0 0.8000 0 0 0.7500 0 0 0.8000 0 0 0.7500 0 0 0.8000 0 0 0.7500 0 0 0.8000 0 0 0.7500
Write your drawframe function below
function drawframe(f)
persistent C h i n
if f == 1
n = 48;
C = rand(n);
h = imshow(C);
map = [0.95 0.95 0.95; repmat([0 0 0.75; 0 0 0.8],10,1)];
colormap(map)
i = 1:n^2;
end
h.CData(mod(i+1,n^2)+1) = h.CData(mod(i,n^2)+1);
i = i+1;
end
Animation
Remix Tree