Skip to content

Commit a965748

Browse files
authored
Add info about the 1.9 colour channel IDs and 1.9 colour channel property (#85)
* Update level-object.md Adding 1.9 colour channel info * Update level-object.md * Update level-colors.md i hate spelling colour without the u also i'm pretty sure that lbg formula is wrong but that's a different pull request for someone else to make * Update level-colors.md * Update level-colors.md changed 2.1 to 2.0+
1 parent ab9a78c commit a965748

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

docs/resources/client/level-components/level-colors.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,23 @@ Here are all of the different color id's:
7373
| `1009` | **G2** | This is the secondary color of the ground |
7474
| `1010` | **BLACK** | This is the static color channel which is always `r: 0, g: 0, b: 0`. Used in saws that are black by default |
7575

76-
### Undiscovered color channel id's
76+
### Undiscovered color channel IDs
7777
`WHITE`: Static color that is always `r: 255, g: 255, b: 255`
7878
`LIGHTER`: A lighter version of the primary color in objects. Used in the white small blocks found in `build tab 2 on page 6`.
7979

80+
### 1.9 color channel ID's
81+
GD's 1.9 version used a different ID scheme to identify color channels. In 2.0+, these IDs are still present, but only used in the legacy `1.9 Color Channel ID` property of 1.9 objects. They are as follows:
82+
| 1.9 Channel ID | Name | Corresponding 2.0+ ID |
83+
|:----|:---------|:-----------------------------|
84+
| `1` | **P1** | `1005`
85+
| `2` | **P2** | `1006`
86+
| `3` | **COL 1** | `1`
87+
| `4` | **COL 2** | `2`
88+
| `5` | **LBG** | `1007`
89+
| `6` | **COL 3** | `3`
90+
| `7` | **COL 4** | `4`
91+
| `8` | **3DL** | `1003`
92+
8093
### Light Background (LBG) calculation
8194
The LBG takes the HSV of background. Subtracts `20` from its saturation, then interpolates from `P1` to the last HSV by a factor of the last HSV's value devided by `100`.
8295

@@ -88,4 +101,4 @@ function lightBG(bg, p1) {
88101

89102
return blendColor( p1, HSVtoRGB(hsv), hsv.v / 100 );
90103
}
91-
```
104+
```

docs/resources/client/level-components/level-object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Property keys reflect the keys found in the following table, whereas property va
6363
| 15 | Player Color 1 | **bool** | the Player Color 1 property of any Color trigger |
6464
| 16 | Player Color 2 | **bool** | the Player Color 2 property of any Color trigger |
6565
| 17 | Blending | **bool** | the Blending property of any Color trigger |
66+
| 19 | 1.9 Color Channel ID | **integer** | the legacy Color Channel ID property used in 1.9 levels. If set to a valid value, both the Main and Secondary Color Channel ID properties will be ignored. |
6667
| 20 | Editor Layer 1 | **integer** | the Editor Layer 1 property of the object |
6768
| 21 | Main Color Channel ID | **integer** | the Main Color Channel ID property of the object |
6869
| 22 | Secondary Color Channel ID | **integer** | the Secondary Color Channel ID property of the object |
@@ -161,8 +162,7 @@ The following key ranges are potentially discarded features, whose appearance in
161162
<th>Key End</th>
162163
</tr>
163164
<tr>
164-
<td align="center">18</td>
165-
<td align="center">19</td>
165+
<td align="center" colspan="2">18</td>
166166
</tr>
167167
<tr>
168168
<td align="center">26</td>

0 commit comments

Comments
 (0)