- /
-
Snow
on 29 Nov 2023
- 6
- 17
- 2
- 0
- 192
drawframe(1);
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