My drawing tool resamples spirals that will be placed in different places in the screen. Five different strokes can be drawn one after the other, getting resampled into five different spirals that have different radius and are placed in different places. to do it i looked up the spiral formula in the internet, and i made it work similarly as Zach done with the circle formula, dividing the cosinus by TWO_PI. When I put a small radius in the start animating in the testapp.cpp, it gets clearer that the stroke drawn turns into a spiral. If you put a big radius, you cannot really identify what is the shape that the first stroke made is resampling into. Here you have the five strokes turning into spirals:
The first images is the first stroke being resampled. The second is the stroke already resampled as a spiral.The third, the forth and fifth are the 2º, 3º , 4º and 5º stroke getting resampled.
The sixth image corresponds at the five strokes being already spirals and the image that follows is a detail shot.
The two last images are the same thing but drawing fast. So that the five spirals are a mess since they get to an order determined by the spiral shape.
The next step is to work getting different colors in each of the spirals and having the their radius be the last point where the mouse stops drawing the strokes.









No comments:
Post a Comment