Original Post

Does anybody know the the rgb hex codes for the Virtual Boy’s 3 main shades of red? (I’m going to assume black is #000000)

Thanks,

Brian

3 Replies

The intensity of each shade of red is not a fixed brightness–it can be configured by the software independently for each of the three shades (with some exception regarding the brightest shade). That said, there are effectively 128 evenly-spaced different brightness settings, with 0 being black and 127 being full-intensity red.

Where the brightness intensity value i is some number from 0 to 127, the corresponding RGB value can be calculated as follows:

rgb(round(i * 255 / 127), 0, 0)

I like to use #000000, #550000, #AA0000, and #FF0000 (or, when the red gets to be a bit much, the greyscale versions of those ;-))

They’re evenly spaced across the 8-bit color space, and they also happen to be binary repetitions of the VB’s 2-bit pixel data:

[00]000000
[01]010101
[10]101010
[11]111111

(assuming the proper palette settings, etc. are used, of course; but let’s not get bogged down in unnecessary technical detail ;-)).

BTW, they equate to the decimal values 0, 85, 170, and 255, respectively.

Thanks, that should come in handy.

Brian

 

Write a reply

You must be logged in to reply to this topic.