- Code: Select all Expand view
- oBtnNum[k,t]:bClrGrad := { | lInvert | If( lInvert, ;
{ { 1/3, aBack[k], aGradient[k] }, ;
{ 2/3, aGradient[k], aBack[k] } ;
}, ;
{ { 1/2, aGradient[k], aBack[k] }, ;
{ 1/2, aBack[k], aGradient[k] } ;
} ) }
I have a btnbmp as this
![Image](https://i.postimg.cc/nLH5dSXP/f.jpg)
practically I have a horizontal gradient how do I get a vertical gradient? ie like this
![Image](https://i.postimg.cc/ZYrQSh6M/h.png)
I tried also with
- Code: Select all Expand view
- oBtnNum[k,t]:bClrGrad := { | lPressed | If( ! lPressed,;
{ { 1, aBack[k], aGradient[k] } },;
{ { 1, aGradient[k], aBack[k] } } ) }
result
![Image](https://i.postimg.cc/zv7SfNwC/jjjj.png)
which is the worst situation but it is not what I was looking for
any solution pls ?