Permalink
Browse files

small fixes

  • Loading branch information...
1 parent edf37e9 commit 5bdda100cd9a3b0f634b7fc65ffa87578f7d1e5b @alterebro alterebro committed Jul 19, 2016
Showing with 12 additions and 11 deletions.
  1. +4 −6 chapters/00_7_intro.html
  2. +4 −3 chapters/01_vectors.html
  3. +2 −2 stylesheets/pdf.scss
  4. +2 −0 stylesheets/pdf/_print.scss
@@ -283,10 +283,9 @@
stroke(0);
fill(175);
int w = width/randomCounts.length;
- //{!3} Graphing the results
+ //{!3 .offset-top} Graphing the results
for (int x = 0; x < randomCounts.length; x++) {
- rect(x*w, height-randomCounts[x],
- w-1, randomCounts[x]);
+ rect(x*w, height-randomCounts[x], w-1, randomCounts[x]);
}
}</pre>
@@ -987,9 +986,8 @@ <h2 id="noise-detail">Noise Detail</h2>
float yoff = 0.0;
for (int y = 0; y &lt; height; y++) {
- //{!2 .bold} Use xoff and yoff for noise().
- float bright =
- map(noise(xoff,yoff),0,1,0,255);
+ //{.bold .code-wide} Use xoff and yoff for noise().
+ float bright = map(noise(xoff,yoff),0,1,0,255);
// Use x and y for pixel position.
pixels[x + y * width] = color(bright);
//{!1 .bold} Increment yoff.
@@ -954,7 +954,8 @@
mover.checkEdges();
mover.display();
}
-
+</pre>
+<pre data-code-language="java" data-type="programlisting" class="codesplit">
class Mover {
//{!2} Our object has two PVectors: position and velocity.
@@ -1441,8 +1442,8 @@
movers[i].checkEdges();
movers[i].display();
}
-}
-
+}</pre>
+<pre data-code-language="java" data-type="programlisting" class="codesplit">
class Mover {
PVector position;
@@ -14,9 +14,9 @@
> div.container {
background: $color-background;
- max-width: 640px;
+ max-width: 540px;
margin: 4em auto;
- padding: 8em;
+ padding: 12em;
border: solid $color-light 1px;
box-shadow: 5px 5px 0 $color-lighter;
}
@@ -266,6 +266,8 @@ section {
// ----------------------------------
// 9. Grouping content / Images
figure {
+ margin: 1em 0;
+
figcaption {
font-family: $serif;
font-size: $font-S;

0 comments on commit 5bdda10

Please sign in to comment.