• Remix
  • Share
  • New Entry

on 31 Oct 2021
  • 9
  • 345
  • 0
  • 0
  • 280
% Happy Sheep!
% By Victoria A. Sablina
% Handles
s=@sin;
c=@cos;
% Ellipse + Polar Rose
F=@(t,a,f) a(4)*f(t)+a(1)*s(a(2)*t).*f(t)+a(3);
% Angles
t=0:.1:7;
% Parameters
% Head (1:2)
% Eyes (3:6)
% Hoofs (7:14)
% Body (15:16)
% Crown (17:18)
% Tail (19:20)
Z=zeros(1,6);
O=Z+1;
B=[.1*O;.5*O];
G=-13;
P=[Z Z 1 1 O;O O 0 0 8 8 12 12 4 4;-15 2 G 3 -17 3 -3 G 0 G 9 G 12 G -15 12 4 3 20 7;5 7 B(:)' 6 4 14 9 3 3];
% Painting
hold;
Current plot held
for i=1:10
plot(F(t,P(:,2*i-1),c),F(t,P(:,2*i),s),'LineWidth',10);
end
Image
Remix Tree