Skip to content

Commit 788ff37

Browse files
committed
Added newlines after images in markdown for Joel's chapter
1 parent ae0007a commit 788ff37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/intro_to_graphics/chapter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ if (ofGetMousePressed(OF_MOUSE_BUTTON_RIGHT)) { // If the right mouse button is
117117
}
118118
```
119119

120-
[Source code for this section](https://github.com/openframeworks/ofBook/tree/master/chapters/intro_to_graphics/code/1_ii_a_Single_Rectangle_Brush)]
120+
[[Source code for this section](https://github.com/openframeworks/ofBook/tree/master/chapters/intro_to_graphics/code/1_ii_a_Single_Rectangle_Brush)]
121121

122122
[[ofSketch file for this section](https://github.com/openframeworks/ofBook/blob/master/chapters/intro_to_graphics/code/1_ii_a_Single_Rectangle_Brush.sketch)]
123123

@@ -582,7 +582,7 @@ We can also sample points along the polyline using [`getPointAtPercent(...)`](ht
582582
}
583583
```
584584
585-
Now we have evenly spaced points (figure 13, right). Let's try creating a brush stroke where the thickness of the line changes. To do this we need to use a [normal vector](http://en.wikipedia.org/w/index.php?title=Normal_vector "Wiki on normal vectors in geometry"). Figure 14 shows normals drawn over some polylines - they points in the opposite (perpendicular) direction to the polyline. Imagine drawing a normal at every point along a polyline, like figure 15. That is one way to add "thickness" to our brush. We can comment out our circle drawing code in `draw()`, and add these lines of code instead:
585+
Now we have evenly spaced points (figure 13, right). Let's try creating a brush stroke where the thickness of the line changes. To do this we need to use a [normal vector](http://en.wikipedia.org/w/index.php?title=Normal_vector "Wiki on normal vectors in geometry"). Figure 14 shows normals drawn over some polylines - they point in the opposite (perpendicular) direction to the polyline. Imagine drawing a normal at every point along a polyline, like figure 15. That is one way to add "thickness" to our brush. We can comment out our circle drawing code in `draw()`, and add these lines of code instead:
586586
587587
```cpp
588588
vector<ofVec3f> vertices = polyline.getVertices();

0 commit comments

Comments
 (0)