So wait a minute. How did I know where to put those body parts? How did I get the tail and the eye and the ear all in the right place?
The truth of the matter is, it is all done with trial and error. Oh sure, I can crunch numbers and figure out where things are in relation to my reference point. But it is much easier to just make an educated guess and then load the page and see where it lands.
To do the ear, for example, I messed around with drawing part of a circle to get the shape I wanted. I had it no where near the dog's head while I was doing that. Once I had a shape I liked, I started changing the X coordinate to slide it above the dog's head. Then I brought it down by increasing the Y coordinate.
I make a small change, save the code, and reload the page. Doing this I can nudge the thing into a place that I like.
I pretty much did that with all the parts. There is nothing wrong with trial and error.
No comments:
Post a Comment