Skip to content

Commit 695b3ff

Browse files
committed
style: render raster images/screenshots as pixelated (#507)
1 parent fc748ce commit 695b3ff

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

custom/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ code {
4949
font-weight: 500;
5050
}
5151

52+
.pixelated {
53+
-ms-interpolation-mode: nearest-neighbor;
54+
image-rendering: crisp-edges;
55+
image-rendering: pixelated;
56+
}
57+
5258
.header {
5359
font-weight: 600;
5460
}

src/History.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Pan Docs - also known as `GAMEBOY.TXT` or `GBSPEC.TXT` - is an old document dating back to early 1995, originally written by *Pan of Anthrox*. It has been one of the most important references for Game Boy hackers, emulators and homebrew developers during the last 25 years.
44

55
<p align="center">
6-
<img src="https://raw.githubusercontent.com/gbdev/pandocs/master/historical/1995-Jan-28-ATX-GBI/ADDRESS1.png">
6+
<img class="pixelated" src="https://raw.githubusercontent.com/gbdev/pandocs/master/historical/1995-Jan-28-ATX-GBI/ADDRESS1.png">
77
<br>
88
<i>ADDRESS1.PCX, one of the diagrams attached to the first version, released January 28th, 1995</i>
99
</p>

src/MBC5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ As for the MBC1s RAM Banking Mode, writing a value in the range $00-$0F
4747
maps the corresponding external RAM bank (if any) into the memory area at
4848
A000-BFFF.
4949

50-
![](imgs/MBC5.png "imgs/MBC5.png")
50+
<img class="pixelated" src="imgs/MBC5.png">
5151

5252
### Rumble
5353

src/OAM.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ four bytes with the following meanings:
1414

1515
## Byte 0 — Y Position
1616

17-
![Interpretation of object Y coordinates](imgs/Objects_vertical_position.png)
17+
<img class="pixelated" src="imgs/Objects_vertical_position.png" alt="Interpretation of object Y coordinates">
1818

1919
Y = Object's vertical position on the screen + 16. So for example:
2020

@@ -108,7 +108,7 @@ differently when in CGB mode.
108108
- **In CGB mode**, only the object's location in OAM determines its priority.
109109
The earlier the object, the higher its priority.
110110

111-
:::tip Interaction with "BG over OBJ" flag
111+
::: tip Interaction with "BG over OBJ" flag
112112

113113
Object drawing priority and ["BG over OBJ"](<#BG Map Attributes (CGB Mode only)>) interact in a non-intuitive way.
114114

src/Power_Up_Sequence.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ The boot ROM picks a compatibility palette using an ID computed using the follow
133133
The resulting palettes ID is used to pick 3 palettes out of a table via a fairly complex mechanism.
134134
The user can override this choice using certain button combinations during the logo animation; some of these manual choices are identical to auto-colorizations, [but others are unique](https://tcrf.net/Notes:Game_Boy_Color_Bootstrap_ROM#Manual_Select_Palette_Configurations).
135135

136-
:::tip Available palettes
136+
::: tip Available palettes
137137

138138
A table of checksums (and tie-breaker fourth letters when applicable) and the corresponding palettes can be found [on TCRF](https://tcrf.net/Notes:Game_Boy_Color_Bootstrap_ROM#Assigned_Palette_Configurations).
139139

@@ -161,7 +161,7 @@ While it may make sense for the boot ROM to at least partially verify the ROM's
161161

162162
### Legal implications
163163

164-
:::danger Caution
164+
::: danger Caution
165165

166166
The following is advisory, but **is not legal advice**.
167167
If necessary (e.g. commercial releases with logos on the boxes), consult a lawyer.
@@ -178,7 +178,7 @@ Fortunately, [*Sega v. Accolade*](https://en.wikipedia.org/wiki/Sega_v._Accolade
178178

179179
That said, if you want to explicitly mark the lack of licensing from Nintendo, you can add some text to the logo screen once the boot ROM hands off control, for example like this:
180180

181-
![Mockup screenshot of an endorsement disambiguation screen](imgs/not_licensed.png)
181+
<img class="pixelated" src="imgs/not_licensed.png" alt="Mockup screenshot of an endorsement disambiguation screen">
182182

183183
### Bypass
184184

@@ -197,7 +197,7 @@ Strangely, despite correcting the TOCTTOU vulnerability in its later revision, t
197197
Regardless of the console you intend for your game to run on, it is prudent to rely on as little of the following as possible, barring what is mentioned elsewhere in this documentation to detect which system you are running on.
198198
This ensures maximum compatibility, both across consoles and cartridges (especially flashcarts, which typically run their own menu code before your game), increases reliability, and is generally considered good practice.
199199

200-
:::warning Use it at your own risk
200+
::: warning Use it at your own risk
201201

202202
Some of the information below is highly volatile, due to the complexity of some of the boot ROM behaviors; thus, some of it may contain errors.
203203
Rely on it at your own risk.

src/Scrolling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The Window is visible (if enabled) when both coordinates are in the ranges
3030
WX=0..166, WY=0..143 respectively. Values WX=7, WY=0 place the Window at the
3131
top left of the screen, completely covering the background.
3232

33-
:::warning Warning
33+
::: warning Warning
3434

3535
WX values 0 and 166 are unreliable due to hardware bugs.
3636

0 commit comments

Comments
 (0)