I know that PB cannot define (compose) constants natively by a variable or a function.
But I believe there must be an indirect(?) way (through API, ASM, or via a Macro)?
Who can help me? (if there ever exists a workaround for that)...
Here is where I started to define constants for my colors.
Code: Select all
EnableExplicit
Define.i R,G,B,N
Macro const(cvar,R,G,B)
    N=RGB(R,G,B)
    cvar=N
EndMacro
R=$FF
G=$B2
B=$00
const(#MYCOLOR,R,G,B)   ; should result in #MYCOLOR=$FFB200 (16757248)
Debug #MYCOLOR


 
 


 which makes it a vicious circle.
 which makes it a vicious circle.


 
   )
 )