Maths is smART |
Maths is smart, maths is art.
|
How cool is this star fractal :)
About a week ago I blogged about randomness and one of the pictures I posted looked like this:

This was created using the following code:
nopoints = 20;
x = linspace(-1,1,nopoints);
dt = 0.005;
n = 1/dt;
theta = 2*pi*dt;
A = [cos(theta) -sin(theta); sin(theta) cos(theta)];
y = x;
clf
hold on
for i=1:n
for j=1:nopoints
v = [x(j);y(j)];
vnew = A*v;
x(j) = vnew(1);
y(j) = vnew(2);
end
set(gca, ‘ColorOrder’, rand(1,3));
plot(x+10,y+10)
end
hold off
Granted this is a bit complicated for the effected created but I wanted to change the 7th line to another function and just by that simple change create more interesting pictures. Well that is what I have done, and here are a few of the consequences:


I will post more tomorrow, including my favourite! For now, what function do you think I used for this picture:
