Convert figure images to markdown

This commit is contained in:
James Gregory 2013-12-31 07:56:10 +11:00
commit 77a95ec319
115 changed files with 218 additions and 403 deletions

View file

@ -37,8 +37,7 @@ In Figure 35.2, the X dimension is the major dimension. This means that
drawn. The trick, then, is to decide on the correct Y coordinates to
accompany those X coordinates.
![](images/35-02.jpg)\
**Figure 35.2**  *Drawing between two pixel endpoints.*
![**Figure 35.2**  *Drawing between two pixel endpoints.*](images/35-02.jpg)
It's easy enough to select the Y coordinates by eye in Figure 35.2. The
appropriate Y coordinates are 0, 0, 1, 1, 2, 2, based on the Y
@ -73,8 +72,7 @@ the next than to the current Y coordinate. The third pixel is drawn at
adjustment of one pixel in the current Y coordinate. The running error
of the pixel actually drawn at this point is C minus D.
![](images/35-03.jpg)\
**Figure 35.3**  *The error term in Bresenham's algorithm.*
![**Figure 35.3**  *The error term in Bresenham's algorithm.*](images/35-03.jpg)
The fourth pixel has an X coordinate of 3. The running error at this
point is E minus D; since this is less than 1/2, the current Y