Skip to content

Commit 7f7d08c

Browse files
committed
intro_to_graphics chapter edit suggestions
A few tweaks to improve readability.
1 parent 16fdcb0 commit 7f7d08c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chapters/intro_to_graphics/chapter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ In the `keyPressed(...)` function, add the following:
384384
if (key == 's') {
385385
// It's strange that we can compare the int key to a character like `s`, right? Well, the super short
386386
// explanation is that characters are represented by numbers in programming. `s` and 115 are the same
387-
// thing. If you want to know more, look check out the wiki for ASCII.
387+
// thing. If you want to know more, check out the wiki for ASCII.
388388
glReadBuffer(GL_FRONT); // HACK: only needed on windows, when using ofSetAutoBackground(false)
389389
ofSaveScreen("savedScreenshot_"+ofGetTimestampString()+".png");
390390
}
@@ -504,7 +504,7 @@ if (button == OF_MOUSE_BUTTON_LEFT) {
504504
}
505505
```
506506

507-
Now let's move over to the `update()` function. For ofSketch users, this another default function that you might not see in your sketch. It is a function that is called once per frame, and it is intended for doing non-drawing tasks. It's easy to add - see the [ofSketch file](https://github.com/openframeworks/ofBook/blob/master/chapters/intro_to_graphics/code/2_ii_a_Polyline_Pen.sketch) for this section.
507+
Now let's move over to the `update()` function. For ofSketch users, this is another default function that you might not see in your sketch. It is a function that is called once per frame, and it is intended for doing non-drawing tasks. It's easy to add - see the [ofSketch file](https://github.com/openframeworks/ofBook/blob/master/chapters/intro_to_graphics/code/2_ii_a_Polyline_Pen.sketch) for this section.
508508

509509
Let's add points to our polyline in `update()`:
510510

@@ -555,7 +555,7 @@ And we have a simple pen-like brush that tracks the mouse, and we can draw a dop
555555
556556
#### Polyline Brushes: Points, Normals and Tangents ####
557557
558-
Since we have the basic drawing in place, now we play with how we are rendering our polylines. We will draw points, normals and tangents. We'll talk about what normals and tangents in a little bit. First, let's draw points (circles) at the vertices in our polylines. Inside the `for` loop in `draw()` (after `polyline.draw()`), add this:
558+
Since we have the basic drawing in place, now we play with how we are rendering our polylines. We will draw points, normals and tangents. We'll talk about what normals and tangents are in a little bit. First, let's draw points (circles) at the vertices in our polylines. Inside the `for` loop in `draw()` (after `polyline.draw()`), add this:
559559
560560
```cpp
561561
vector<ofVec3f> vertices = polyline.getVertices();
@@ -907,7 +907,7 @@ Now use `bgColor` for the transparent rectangle we draw on the screen and `fgCol
907907
908908
**Extensions**
909909
910-
1. Pass in a third parameter, `z`, into `ofTranslate(...)` and `ofScale(...)` or rotate around the x and y axes with of `ofRotate(...)`.
910+
1. Pass in a third parameter, `z`, into `ofTranslate(...)` and `ofScale(...)` or rotate around the x and y axes with `ofRotate(...)`.
911911
1. Capture animated works using an addon called [ofxVideoRecorder](https://github.com/timscaffidi/ofxVideoRecorder "ofxVideoRecorder github"). If you are using Windows, like me, that won't work for you, so try screen capture software (like fraps) or saving out a series of images using `ofSaveScreen(...)` and using them to create a GIF or movie with your preferred tools (photoshop, ffmpeg etc.)
912912
913913
## Next Steps ##

0 commit comments

Comments
 (0)