- /
-
A heart
on 24 Oct 2022
- 2
- 15
- 0
- 0
- 280
close all; clear all; tic % how fast is your computer?
theta=(0:0.001:1)*2*pi; % angles
x=cos(theta); % width
y=sin(theta)+abs(x)*0.7; % height
fill(x,y,'r','linewidth',2) % draw
axis equal; axis off
% print('-djpeg','-r600', 'heart.jpg'); % uncomment to save
toc % how fast is your computer?
disp('pretty simple and fun, no? yayyyyyyyyyyyyyyyyyyyyyyyyy ' )
disp 'creditSimple HEART Shape Drawing by Amitava Biswas '