Skip to content

Commit f38f579

Browse files
committed
Fixing formatting issues with images in markdown to get them to render in the webBook
1 parent fdd2c1e commit f38f579

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

chapters/ios/chapter.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The implementation (.m) file is where you add your actual code for the methods d
5353
Nice thing about XCode is that it makes programming easier by creating the basic structure of a class when you first create it, so you don't have to type out the above code structure everytime. By going to File menu, selecting New and then File... a dialogue will appear showing all the files that XCode can create for you. Select `Objective-C class` and another dialogue will appear where you can name your new Class and specify which Subclass it will extend. MyClass will then be automatically generated, ready for you to enter your code into.
5454

5555
![Figure 1: OF on iPhone.](images/ofxiOS_objc_0_sml.jpg "Figure 1: OF on iPhone.")
56+
5657
![Figure 1: OF on iPhone.](images/ofxiOS_objc_1_sml.jpg "Figure 1: OF on iPhone.")
5758

5859
###Variables and Methods
@@ -130,6 +131,7 @@ All that the above is doing is assigning a new string value to `firstName` but i
130131
The basic theory behind reference counting is that when ever an object is retained, the reference count goes up by +1 and everytime it is released, the reference count is goes down by -1. When the reference count is back down to zero, the object is released from memory.
131132

132133
![Figure 1: OF on iPhone.](images/ofxiOS_objc_2.png "Figure 2: ofxiOS XCode.")
134+
133135
NEED TO RECREATE THIS DIAGRAM.
134136

135137
There are a couple way of creating an Obj-C object and we'll use the NSString class to demonstrate. Below is a code sample of how a `NSString` object is created using the `alloc` method. Calling `alloc` on a `NSString` class returns a new `NSString` object. A very important thing to note here is that when an object is created using `alloc`, it's reference count is at +1. So behind the scenes, Obj-C has created a new string object and has already called `retain` on the object for us. The final line in the code example is initialising the string object with some text which says `"I'm a string"`.
@@ -443,6 +445,7 @@ avVideoPlayer = (AVFoundationVideoPlayer *)video.getAVFoundationVideoPlayer();
443445
###ofxiOSSoundStream
444446

445447
![Figure 1: OF on iPhone.](images/ofxiOS_audioInputExample_sml.png "Figure 2: ofxiOS XCode.")
448+
446449
![Figure 1: OF on iPhone.](images/ofxiOS_audioOutputExample_sml.png "Figure 2: ofxiOS XCode.")
447450

448451

chapters/math/chapter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ line.addVertex(ofPoint(200, 400));
204204
line.bezierTo(100, 100, 800, 100, 700, 400);
205205
```
206206
This generates this image:
207+
207208
![Beziér](images/bezier.png)
208209

209210
This is just one example of use though. All of the different combinations are documented extensively in the _Advanced Graphics_ chapter.

chapters/project_elliot/chapter.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@ Editing a 3D scene through a computer monitor is often confusing, especially whe
125125
One simple way of seeing the scene from 2 'views' is to draw shadows into the scene, enabling us to judge depth in the scene much more easily.
126126

127127
![Without shadows](images/shadows_without.png)
128-
Without shadows
129128

130129
![With shadows](images/shadows_with.png)
131-
With shadows
132130

133131
==suggest arranging these 2 images side by side==
134132

chapters/setup_and_project_structure/chapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ This is OF's simple XML implementation used mostly for loading and saving settin
179179

180180
That's what's in the pantry. what do you want to cook?
181181

182-
![pantry, image courtesy [http://resultsroom.co.nz/stock-pantry-fridge/](http://resultsroom.co.nz/stock-pantry-fridge/)](images/pantry.jpg).
182+
![pantry, image courtesy [http://resultsroom.co.nz/stock-pantry-fridge/](http://resultsroom.co.nz/stock-pantry-fridge/)](images/pantry.jpg)
183183

184184

chapters/sound/chapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ If you're getting pops in the middle of your playback, you can diagnose it by tr
457457
### "Clipping" / Distortion
458458
If your samples begin to exceed the range of -1 to 1, you'll likely start to hear what's known as "clipping", which generally sounds like a grating, unpleasant distortion. Some audio hardware will handle this gracefully by allowing you a bit of leeway outside of the -1 to 1 range, but others will "clip" your buffers.
459459
460-
![Clipping](images/clipped-sinwave.png "diagram showing two sine waves, one demonstrating clipping by extending beyond the upper and lower bounds")
460+
![Clipping](images/clipped-sinewave.png "diagram showing two sine waves, one demonstrating clipping by extending beyond the upper and lower bounds")
461461
462462
Assuming this isn't your intent, you can generally blame clipping on a misbehaving addition or subtraction in your code. A multiplication of any two numbers between -1 and 1 will always result in another number between -1 and 1.
463463

0 commit comments

Comments
 (0)