GMU:Principia Textilica/Eeva Ahlamo: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 31: Line 31:


I still need to get some chain to carry the pouch, but other than that it came out rather nice. Suitable party bag in any case. :)
I still need to get some chain to carry the pouch, but other than that it came out rather nice. Suitable party bag in any case. :)


===2===
===2===
Line 41: Line 43:


[[File:skirtprogress.jpg]]
[[File:skirtprogress.jpg]]
After finishing the skirt I started to think what kind of flowers I could code. I tried few things but all the time keeping in mind what is actually possible or simple for me to realise. (I'm not a pro with needleworks, I wanted to keep it with the limits what I could do with reasonable effort.) Here are a couple of the first flowers I coded. Here I set the colour as a random factor as well, just to try it out.
[[File:firstflowers.jpg]]
From the beginning on I stayed with the six petals, since more would quickly have become too complex for the smallest flowers and less wouldn't have been challenging enough for the course. I did leave the white blobs out, too, because I didn't really get good idea about how to make them and I thought with lots of flowers it could look messy.
The way I made the petals was with bezier vertex in Processing. I set the first point with vertex() and then let the programme randomise some of the other points like this:
bezierVertex(i-random1, i-50, i-random1, i-150, i, i-200);
bezierVertex(i+random1, i-150, i+random1, i-50, i, i);
Here the starting point for the form is i, i. The 1st and 2nd values are the coordinates for the bezier handle that starts from the starting point in vertex(). 3rd and 4th and the second bezier handle's coordinates (that are attached to the finishing point) and the 5th and 6th values are the x and y of the finishing point for the line. So these two lines are the two sides of a petal. For each flower in the programme I set different random values, because I didn't want any two flowers to be similar (the programme randomises the value only once, so random1 value is the same for each random1 used in the code.) With the rotate-command I rotated the petals so that it created 6 of them. Here still the whole code for one flower. The different random values I set in the beginning of the programme.
  pushMatrix(); '''// I tell the thing to keep this code in its own 'pocket''''
  translate(randomTranslateX1, randomTranslateY1); '''// setting the place for the flower to form'''
  scale(randomScale1); '''// scaling so that not all the flowers are same size'''
  for (int i = 0; i < 6; i++) { '''// how many petals there should be'''
  beginShape();
  vertex(i, i); '''// the middle point of the flower, here the petal starts'''
  bezierVertex(i-random1, i-50, i-random1, i-150, i, i-200); '''//create the petal'''
  bezierVertex(i+random1, i-150, i+random1, i-50, i, i);
  endShape();
  rotate(PI/3); '''//rotate command'''
  }
  popMatrix(); '''//'pocket' is closed'''
'''The full code for the flowers I did is visible on my [https://github.com/west468/Principia-Textilica-Course/tree/master/16-final-project Github page].'''
----
After I had tested and tweaked the code to my liking I got out the flowers I had in mind. Here I had already set the colours to what I wanted:
[[File:exampleflowers.jpg]]
Now I had to plan how I would distribute the flowers into my skirt. So I draw a sketch of how it should approximately go. I wanted to be able to print the flowers out so I set Processing canvas to the size of A4 paper. I thought it would look nice if they would be on the skirt like flying in the wind, so I thought a diagonal presentation of them would be good.
[[File:skritframe.jpg]]