• Remix
  • Share
  • New Entry

on 6 Oct 2022
  • 2
  • 13
  • 0
  • 0
  • 233
figure()
light;
clf
h = struct();
% draw some pineapple chunks
h.p = fruit.pineapple([8 -12 0],3,22,[1 0 0])
h = struct with fields:
p: [1×3 Graphics]
% draw three raspberries
h.r = fruit.raspberry([13.5 -7 0.6],2/3);
% draw a yellow peach chunk
h.peach = fruit.yellowpeach([10.5 7 0],2);
%rotate(h.peach,[0 0 1],-80,[15 0 0]);
% draw some grapes
h.g = fruit.grape([3 -5 0],1.7);
% draw a lemon slice
h.lemon = fruit.lemon([9.5 -3 2/3],10/3);
axis off
Remix Tree