• Remix
  • Share
  • New Entry

on 23 Oct 2024
  • 11
  • 44
  • 0
  • 0
  • 499
Cite your audio source here (if applicable): https://en.wikipedia.org/wiki/File:Kimi_ga_Yo_instrumental.ogg
drawframe(1);
Write your drawframe function below
function drawframe(f)
persistent g x y a
if f == 1
theta = linspace(0, 2*pi, 100);
c = [188 0 45] / 255;
fill(3/5*cos(theta), 3/5*sin(theta), c, 'EdgeColor', 'n');
xlim([-1.5 1.5]);
ylim([-1 1]);
set(gcf, 'Position', [0 0 560 420], 'color', 'w');
axis equal off;
g = getframe(gcf).cdata;
close;
[s1,s2,~] = size(g);
[x,y] = meshgrid(1:s2, 1:s1);
a = 25 * (x/s1) .^ 0.5;
end
y2 = a .* sin((2*x + y + 200*pi*f/48) * 0.015);
z2 = y + 50 * sin(pi*f/96);
surf(x, y2, z2, g, 'edgec', 'n', 'AmbientStrength', 0.8);
camlight headlight;
axis equal off;
view([-40 20]);
end
Movie
Audio
Remix Tree