Skip to content

Commit

Permalink
Merge pull request #772 from sunarch/fix-typo
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
aduros authored Oct 16, 2024
2 parents 01315f6 + 6303507 commit 979be84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/docs/guides/basic-drawing.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ w4.PALETTE.* = .{

</MultiLanguageCode>

The palette colors are considered to be numbered 1-4, even though they may accessed with indices 0-3.
The palette colors are considered to be numbered 1-4, even though they may be accessed with indices 0-3.

The default Gameboy-ish palette looks like this:

Expand All @@ -133,13 +133,13 @@ The first color in the palette register is used as the screen background color.

## The `DRAW_COLORS` Register

`DRAW_COLORS` is a set of 4 indexes into `PALLETE`. Drawing functions use these indexes to
`DRAW_COLORS` is a set of 4 indexes into `PALETTE`. Drawing functions use these indexes to
decide which colors to use, and what to use them for.

`DRAW_COLORS` is a 16 bit value that holds 4 indexes. Bits 0-3 (the least significant bits)
hold the first draw color, bits 4-7 hold the second draw color, and so on.

Setting a draw color to `1` means use `PALLETE` color 1 for that draw color. The same applies
Setting a draw color to `1` means use `PALETTE` color 1 for that draw color. The same applies
when setting a draw color to `2`, `3`, or `4`.

For example, `rect()` uses the first draw color for the fill color, and the second draw color
Expand Down

0 comments on commit 979be84

Please sign in to comment.