Skip to content

Commit 34f887f

Browse files
committed
Copyediting chapter 19
1 parent ee5ab13 commit 34f887f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

19_paint.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# Project: A Pixel Art Editor
44

5-
{{quote {author: "Joan Miro", chapter: true}
5+
{{quote {author: "Joan Miró", chapter: true}
66

77
I look at the many colors before me. I look at my blank canvas. Then, I try to apply colors like words that shape poems, like notes that shape music.
88

99
quote}}
1010

11-
{{index "Miro, Joan", "drawing program example", "project chapter"}}
11+
{{index "Miró, Joan", "drawing program example", "project chapter"}}
1212

1313
{{figure {url: "img/chapter_picture_19.jpg", alt: "Illustration showing a mosaic of black tiles, with jars of other tiles next to it", chapter: "framed"}}}
1414

@@ -618,7 +618,7 @@ The `data` property of the object returned by `getImageData` is an array of colo
618618

619619
{{index "hexadecimal number", "toString method"}}
620620

621-
The two hexadecimal digits per component, as used in our color notation, correspond precisely to the 0 to 255 range—two base-16 digits can express 16^2^ = 256 different numbers. The `toString` method of numbers can be given a base as argument, so `n.toString(16)` will produce a string representation in base 16. We have to make sure that each number takes up two digits, so the `hex` helper function calls `padStart` to add a leading 0 when necessary.
621+
The two hexadecimal digits per component, as used in our color notation, correspond precisely to the 0 to 255 range—two base-16 digits can express 16^2^ = 256 different numbers. The `toString` method of numbers can be given a base as an argument, so `n.toString(16)` will produce a string representation in base 16. We have to make sure that each number takes up two digits, so the `hex` helper function calls `padStart` to add a leading 0 when necessary.
622622

623623
We can load and save now! That leaves one more feature before we're done.
624624

0 commit comments

Comments
 (0)