justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: I'm trying to understand the precision of the @gfx graphics system. Does it use 8-bit integer or floating-point arithmetic internally for blending operations (like gfx_a)? how does it handle very low alpha values, such as gfx_a=0.01, does it get truncated to 8-bit?
Asked by 8-bit gfx? (102.176.101.x) on July 12 2026, 11:07pm
Reply on July 13 2026, 2:05pm:
    You can refer to lice.cpp (link to LICE_FillRect, e.g.) for the drawing primitives... For gfx_a, that is passed as the 'alpha' parameter, which is indeed quantized to 8-bit, though more than 8 bits, as you can use out of range values, but yes quantized to the nearest value of 1/256th.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2026 Justin Frankel. | RSS