Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovered undiscovered color channels #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/resources/client/level-components/level-colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ Here are all of the different color id's:
| `1007` | **LBG** | This is the static color channel that is a lighter version of `BG` |
| `1009` | **G2** | This is the secondary color of the ground |
| `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 |

### Undiscovered color channel id's
`WHITE`: Static color that is always `r: 255, g: 255, b: 255`
`LIGHTER`: A lighter version of the primary color in objects. Used in the white small blocks found in `build tab 2 on page 6`.
| `1011` | **WHITE** | This is the static color channel which is always `r: 255, g: 255, b: 255`.
| `1012` | **LIGHTER** |A lighter version of the primary color in objects. Used in the white small blocks found in `build tab 2 on page 6`.

### Light Background (LBG) calculation
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`.
Expand All @@ -88,4 +86,4 @@ function lightBG(bg, p1) {

return blendColor( p1, HSVtoRGB(hsv), hsv.v / 100 );
}
```
```