• Remix
  • Share
  • New Entry

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?
Elapsed time is 0.335005 seconds.
disp('pretty simple and fun, no? yayyyyyyyyyyyyyyyyyyyyyyyyy ' )
pretty simple and fun, no? yayyyyyyyyyyyyyyyyyyyyyyyyy
disp 'creditSimple HEART Shape Drawing by Amitava Biswas '
credit: Simple HEART Shape Drawing by Amitava Biswas
Image
Remix Tree