Skip to content

Gamma corrected HUD background color#1726

Merged
Agiel merged 1 commit intoNeotokyoRebuild:masterfrom
Agiel:hud_background_gamma
Feb 24, 2026
Merged

Gamma corrected HUD background color#1726
Agiel merged 1 commit intoNeotokyoRebuild:masterfrom
Agiel:hud_background_gamma

Conversation

@Agiel
Copy link
Copy Markdown
Contributor

@Agiel Agiel commented Feb 23, 2026

Description

The OGNT HUD background color is 200 200 200. Using the formula to convert to sRGB (255*(x/255)^1/2.2) gives 150 150 150, and with those numbers the color looks a lot closer to OGNT.

However, at 40 alpha it's too transparent. Using the same formula as for rbg gives 110, which is too opaque. With trial and error I (very unscientifically) arrived at 60, which seems close enough. See comparison screenshots below (taken with HDR disabled).

Screenshot_20260223_205248 Screenshot_20260223_205956 Screenshot_20260223_210428 Screenshot_20260223_210512

Toolchain

  • Linux GCC Distro Native - CachyOS - gcc version 15.2.1 20260209

Linked Issues

  • fixes #
  • related #

@Agiel Agiel requested a review from a team February 23, 2026 20:22
Copy link
Copy Markdown
Contributor

@sunzenshen sunzenshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:

Image

@Agiel Agiel merged commit 5dc60a6 into NeotokyoRebuild:master Feb 24, 2026
7 checks passed
@DESTROYGIRL DESTROYGIRL added the UI/HUD Relates to the HUD, NeoUI, menus, etc label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI/HUD Relates to the HUD, NeoUI, menus, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants