• New Entry

Thank You!

Anton Kogios on 31 Oct 2022
  • 0
  • 52
  • 0
  • 0
  • 275
% Thanks to the MathWorks staff and to all the participants for a great competition!
% Remix of Eric Ludlam's 'MATLAB Balloon'
% https://au.mathworks.com/matlabcentral/communitycontests/contests/5/entries/12228
% Use TEXT to create a blob bitmask.
% Disable font smoothing to get crisper font
t=text(1,1,sprintf('THANKS\nMATLAB\n ♡'),Un='pix',FontSm='of',FontSi=15);
f=getframe(gca,t.Extent);
cla % Make the text object go away
% Convert RGB uint8 into logical bitmask & convert mask into coordinates
[y,x]=find(f.cdata(:,:,1)<1);
v=[x,y];
v(:,3)=9;
% Convert coordinates into blobs and draw.
S=isosurface(blinnblob(9+v*2,192,210,40),1);
patch(S,FaceVertexC=S.vertices(:,1))
axis equal ij off
light
shading interp
colormap turbo
% lighting g
% material([.5;.5;.6])
% camzoom(1.5)
Remix Tree