Skip to content

Commit f6ef8c4

Browse files
committed
Fix misnamed property in Chapter 19
1 parent 00cc6ce commit f6ef8c4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

19_paint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ number to create an empty array of the given length. The `fill`
183183
method can then be used to fill this array with a given value. These
184184
are used to create an array in which all pixels have the same color.
185185

186-
{{index "hexadecimal number", "color component", "color field", "fillColor property"}}
186+
{{index "hexadecimal number", "color component", "color field", "fillStyle property"}}
187187

188188
Colors are stored as strings containing traditional ((CSS)) ((color
189189
code))s made up of a ((hash sign)) (`#`) followed by six hexadecimal (base-16)
190190
digits—two for the ((red)) component, two for the ((green))
191191
component, and two for the ((blue)) component. This is a somewhat
192192
cryptic and inconvenient way to write colors, but it is the format the
193-
HTML color input field uses, and it can be used in the `fillColor`
193+
HTML color input field uses, and it can be used in the `fillStyle`
194194
property of a canvas drawing context, so for the ways we'll use colors
195195
in this program, it is practical enough.
196196

html/errata.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ <h2>Chapter 16</h2>
8585
refers to the <code>arrow</code> binding, where it should
8686
say <code>arrowKeys</code>.</p>
8787

88+
<h2>Chapter 19</h2>
89+
90+
<p><strong>Page 336</strong> <em>The State</em>: The text mentions the
91+
property `fillColor` where it should say `fillStyle` instead.
92+
8893
<h2>Chapter 20</h2>
8994

9095
<p><strong>Page 369</strong> (1st) <em>Directory

0 commit comments

Comments
 (0)