• Remix
  • Share
  • New Entry

  • Ratul Das

  • /
  • Joy Division: Unknown Pleasures Cover

on 21 Oct 2021
  • 7
  • 87
  • 0
  • 1
  • 280
% Unknown Pleasures Album Cover code
n=500; % number of column / width of album
b=zeros(750,650); % Background area
p=pi*(1:n)/n; % input of sine function
for i=80:-1:1 % index of signal rows
r=zeros(1,n); % initializing pulsar signal vector
% sum of sine wave vectors of random magnitudes and 1:50 freq
for k=1:50
x=rand;
r=r+x*(sin(k*p)+1);
end
% hump vector to imitiate the big ridges
l1=rand/2-2;
w=humps(l1:0.01:l1+4.99);
v=2*x*(w-min(w))/80;
if x>0.3
v=flip(v) ;
end
% sum of sine waves and hump vector
r=floor((r.*v+v))+randi([0,2],1,n); % convert all values of r to integers because r needs to denote row indexes
% drawing one line the album cover
for j=1:n
z=r(j)+8*i+60;
b(z:z+2,j+75)=1;
b(1:z-1,j+75)=0;
end
end
imshow(rot90(b,2));
Remix Tree