PDA

View Full Version : Abstraction ad absurdum


captan
09-06-2003, 11:19 AM
Title: "Punk Girl Spiral"

Medium: MatLab code/text (!)

No reference, just pure code. (save the text below as a matlab "m-file" (a simple text dokument with extension ".m") and you will be able to see a visual representation of this piece if you run the file in MatLab).

So what's the point of this mathematical abstraction of a visual image anyway you might ask? Well, I thought I'd let you answer that question yourself. Is this art?

% start artwork

clear, clf

x = [ 2 2.1 2.5 3.5 4 4.5 4.6 4.4 4.5 4.3];
x = [x 3.7 3.5 3.8 4.2 4.5 4.5 4.7 4.7 4.6 5 ];
x = [x 4.6 4.7 5 5.2 5.9 6 5.8 6 5.9 5.5];
x = [x 5.5 5.7 5.9 5.7 5.6 5.3 5.3 5.5 5.6 7.2];

x = [x 6.6 5.6 5.7 6 6.7 6.5 6.3 6.4 6.1 6.1];
x = [x 7.4 7.9 7.7 6.5 5.7 5.3 5.3 5.3 5.4 6 ];
x = [x 5.8 6.5 6.2 7.5 6.5 7.5 6.4 6.8 6 5.3];
x = [x 4.2 4.8 4.3 2.8 3.7 2 3.3 2.6 3.6 3.5];

x = [x 3.9 4.4 4.4 4.4 3.8 3.5 3 2.5 1.5 1 ];
x = [x 0.5 0.5 0 0.4 1.3 1.8 3.6 3.9 3.9 3.7];
x = [x 3.2 3.2 2.6 2.6 2.7 3.2 3.5 3.6 3.1 2.5];
x = [x 2];

y = [ 1.5 1.2 1.2 1.5 1.4 1.5 2 2.5 3.5 5.5];
y = [y 6.3 6.6 8 10 10 8 6.4 5.9 5 2.1];
y = [y 0.9 0.3 0 0.3 0.6 1.5 2.1 4 5.5 6 ];
y = [y 6.5 8 9.5 10.3 11.5 12.2 13 14 14.7 13.5];

y = [y 12.8 11.5 10.3 10.2 10.5 11 11 10.6 10.6 11.4];
y = [y 12.4 13.1 13.8 15.4 16 16.1 16.5 16.9 17.4 17 ];
y = [y 17.6 17.5 18 17.9 18.8 19.5 19.5 20.7 20.1 20.9];
y = [y 21 19.9 20.2 20.3 19.4 19.1 18.6 18.0 18.0 17.6];

y = [y 16.7 16.9 16.5 16.2 16.1 15.6 13.9 13.5 12.3 12.3];
y = [y 12 11.8 11.4 10.9 11.2 11.7 13.2 14.2 13.2 12.4];
y = [y 11.5 10.6 8 6.8 6 5 3.5 3 2 1.6];
y = [y 1.5];

hairX = [3.6 3.6 3.9 4 4.5 4.7 5.1 5.3 5.5 5.8 5.6 5.4 5.4 6 5.8 6.5 6.2 7.5 6.5 7.5 6.4 6.8 6 5.3 4.2 4.8 4.3 2.8 3.7 2 3.3 2.6 3.6];
hairY = [18.0 18.4 19 18.5 19.2 18.3 19 18 18.4 18.3 17.7 17.7 17.4 17 17.6 17.5 18 17.9 18.8 19.5 19.5 20.7 20.1 20.9 21 19.9 20.2 20.3 19.4 19.1 18.6 18.0 18.0];

topX = [3.9 3.9 5.3 5.5 5.6 5.7 5.3 5.3 4.4 4.4 3.8 3.9 3.5 3.9];
topY = [14.2 13.2 13 14 14.7 16 16.1 16.5 16.5 16.2 16.1 15.6 15 14.2];

skirtX = [3.2 3.2 2.6 5.7 5.9 5.7 5.6 3.2];
skirtY = [11.5 10.6 8 8 9.5 10.3 11.5 11.5];

bellybuttonX = [4.3];
bellybuttonY = [12.2];

hold on

rectangleX = [-30 -30 30 30 -30];
rectangleY = [-30 30 30 -30 -30];

fill(rectangleX, rectangleY,'b')

n = 20;

v = 2*pi/n;

S = [cos(v) -sin(v); sin(v) cos(v)];

for k=1:n

P = S*[x;y];
x = P(1,:);
y = P(2,:);
fill(x,y,'w')

T = S*[hairX;hairY];
hairX = T(1,:);
hairY = T(2,:);
fill(hairX,hairY,'y')

Q = S*[topX;topY];
topX = Q(1,:);
topY = Q(2,:);
fill(topX,topY,'k')

L = S*[skirtX;skirtY];
skirtX = L(1,:);
skirtY = L(2,:);
fill(skirtX,skirtY,'k')

B = S*[bellybuttonX;bellybuttonY];
bellybuttonX = B(1,:);
bellybuttonY = B(2,:);
plot(bellybuttonX,bellybuttonY,'ok')

end

axis equal, axis off

% end artwork

captan
09-06-2003, 11:26 AM
And for those of you who don't have MatLab - here's the output of that code:

http://www.wetcanvas.com/Community/images/06-Sep-2003/14313-punk.jpg

(note: this image is not the real artwork at display here, the code is. If I wanted to paint something digitally I would naturally use Photoshop or Illustrator or Painter or whatever - it's quite a lot easier and gves much better visual results. This is just to prove that it does produce "something".)

heh
09-06-2003, 11:51 AM
humm that is interesting

axxxel
09-06-2003, 11:57 AM
[ 2 2.1 2.5 3.5 4 4.5 4.6 4.4 4.5 4.3];
[x 3.7 3.5 3.8 4.2 4.5 4.5 4.7 4.7 4.6 5 ];
[x 4.6 4.7 5 5.2 5.9 6 5.8 6 5.9 5.5];
[x 5.5 5.7 5.9 5.7 5.6 5.3 5.3 5.5 5.6 7.2];


yes it is ! :cool:

arourapope
09-06-2003, 01:47 PM
fascinating!

Tamana
09-06-2003, 04:27 PM
I bet all those math teachers that had to answer the question:

"What do I need math for after I graduate anyway?!! I want to be an artist not a mathematician!!",

are laughing quite hard about now.

timelady
09-06-2003, 04:51 PM
As someone who used to do code (nothing major, just lingo) I think it can be beautiful - there are intricacies and methods of creating commands or sequences that are lovely, not necessary. They are choices the creator makes just like we make choices in our composition and colour in a painting. I used to re-do things that worked perfectly well just to get more beautiful concise code! (Yes, I used to grin like a madwoman and make people look at the lingo even though they hadn't a clue what I was doing.)

Art is in the intention. :)

Tina.