- /
-
Bullseye
on 24 Oct 2022
- 2
- 6
- 0
- 0
- 237
% create a figure
figure;
% plot the face
t = linspace(0, 2*pi, 100);
plot(sin(t), cos(t), 'r');
% plot the eyes
hold on;
plot(0.2*sin(t), 0.2*cos(t), 'B');
plot(-0.2*sin(t), 0.2*cos(t), 'B');
% plot the mouth
plot(0.5*sin(t), -0.5*cos(t), 'Y');
%Crosshair
plot(t-1,-t+1,'g');
plot(-t+1,-t+1,'g');
% set the axis
axis([-1 1 -1 1]);
axis equal;
axis off;