• Remix
  • Share
  • New Entry

on 25 Oct 2022
  • 13
  • 67
  • 1
  • 2
  • 280
% Use TEXT to create a blob bitmask.
% Disable font smoothing to get crisper font
t=text(20,20,'MATLAB',Un='pix',FontSm='of',FontSi=15);
f=getframe(gca,t.Extent);
cla% Make the text object go away
% Convert RGB uint8 into logical bitmask
g=f.cdata(:,:,1)<1;
% Convert mask into coordinates
[y,x]=find(g);
v=[x,y];
v(:,3)=9;
% Convert coordinates into blobs and draw.
S=isosurface(blinnblob(9+v*2,64,180,40),1);
patch(S,FaceVertexC=S.vertices(:,1))
shading interp
lighting g
material([.5
.5
.6])
axis equal ij off
light
camzoom(1.5)
Remix Tree