- /
-
Beautiful Monster
on 24 Oct 2024
- 10
- 217
- 0
- 0
- 918
Beautiful Monster by STAYC
drawframe(1);
Write your drawframe function below
% Graph of Parametric Function of "Beautiful Monster" created by Dhimas Mahardika S.Si., M.Mat.
% from Sanggung Utara, Jatingaleh, Candisari
% Universitas Diponegoro Tembalang
% Universitas Nasional Karangturi
function drawframe(f)
h = linspace(0,2.4*pi,96);
a=h(f)
t = linspace(0,a,1000);
t1= linspace(-0.515,-0.107);
t2= linspace(0.107,0.515);
t3= linspace(-0.1,0.1);
t4= linspace(0,2*pi);
t5= linspace(-2.285,2.285);
t7= linspace(-0.345,0.345);
m=(sin(3*t)/2) + (sin(t)/3) - (sin(4*t)/4) + (sin(t)/5) + (sin(t)/6) + (sin(5*t)/7) + (sin(4*t)/8) - (sin(t)/9) + (sin(5*t)/11) + (sin(t)/12)
n= 1 + (cos(3*t)/2) + (cos(t)/3) + (cos(4*t)/4) + (cos(t)/5) + (cos(t)/6) + (cos(5*t)/7) + (cos(4*t)/8) + (cos(t)/9) + 0.1 + (cos(5*t)/11) + (cos(t)/12)
x= m
y= n
x1=t1
y1=-2.71828.^(0.5*t1)+2.95
x2=t1
y2=3*(t1+0.24).^2 + 1.95
x3=t2
y3=-2.71828.^(-0.5*t2)+2.95
x4=t2
y4=3*(t2-0.24).^2 + 1.95
x5=t3
y5=t3+1.4
x6=t3
y6=-t3+1.4
x7= 0.02599*(1.52*sin(3*t4) - 0.76*sin(6*t4))
y7= 0.02599*(6.6*cos(3*t4) + 69)
x8=0.55*sin(t5)
y8=0.785*cos(t5)+2
x9=t7
y9=1.45*t7.^2 + 1.215
plot(x,y,x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7,x8,y8,x9,y9,'LineWidth',3,'Color',[0 0 0])
axis equal
axis([-1.35 1.35 -0.35 3.35])
end