nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)

Home Page:http://natureofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code pairs padding/margins

shiffman opened this issue · comments

I'm not sure what will look best everywhere in the book, but this particular code example in chapter 1 looks like it has too much vertical space where there are code comment pairs? I'm not sure about this.

screen shot 2016-07-11 at 10 52 35 am

  void update() {
    //{!1} The Mover moves.
    position.add(velocity);
  }

  void display() {
    stroke(0);
    fill(175);
    //{!1} The Mover is displayed.
    ellipse(position.x, position.y, 16, 16);
  }
}