- /
-
diwali light
on 27 Oct 2021
- 9
- 34
- 0
- 0
- 274
a=176;
r=177;
l=@linspace;
c=l(1,a,a);
x=meshgrid(c);
y=x';
f=y+70*(-abs(cos(c./40))+1)-105;
colormap([pink
.7 .2 .2]);
y(y>205&y<210|f<104&f>99)=r;
for k=2:7:a
y(f>10&y<240&x>k&x<k+2)=r;
end
for k=[6 1]
y(f>9&y<260&x>k-5&x<k)=r;
end
for k=1:a
y=[y
circshift(y(r-k,:),randi(4)-2,2)];
end
image(y)
camva(3.8)