• Remix
  • Share
  • New Entry

on 17 Oct 2021
  • 25
  • 63
  • 0
  • 0
  • 279
a=700;%canvas density
x=-1:2E-3:1;
g=[8 4 1 %orange
10 9 1 %yellow
5 1 1 %red
4 7 7%teal
0 0 0]/10;% black
for j=1:a %number of lines
t=2*pi*rand; %random angle
y=rand*x.^2;%start with a quadratic
X=x*cos(t)+y*sin(t);%rotate through random angle
Y=-x*sin(t)+y*cos(t);
s=randi(a-1);%beginning x index for line
e=s+randi(a-s);%ending x index
c=g(randi(5),:);%random logo colour
u=2*rand;%random y displacement
l=2*rand;%random x displacement
m=6*X;%starting pen size (had to grab a vector already in use because of character limit)
for k=s:e-1
m(k+1)=m(k)+8*(rand-.5);%pen size random walk
end
m(m<1)=1;%don't let pen size go under 0
scatter(X(s:e)+l,Y(s:e)+u,m(s:e),c);% plot line one data point at a time
hold on
end
camva(2)
Image
Remix Tree