Hi Steffan, Thanks for reporting this to me. When you are outputting the alpha value how are you using it, is there are any reason why you are not outputting the combined RGB or RGBA and Hex values?
I just want to understand your use of using the Alpha value on it's own. I will look into a fix in the mean time. Perhaps a seperate value such as AlphaAsDecimal or similar you could use to output the value?
I'm using the Alpha rgb value to specify the background of a div box. so it is used like this <div style="background: rgba(DynamicModel.color.rgba)">
This is as far as i remember the way the documentation suggests it. I have no specific need of using the alpha value on its own. But the rgba method returns the alpha value as a comma seperated number instead of a dot. I'm not sure if it could be a culture specific problem as decimal values in Denmark are seperated by comma?
Hi Steffan, Ah OK so looks like a culture issue with my code and the decimal being stored as a comma as apposed to a fullstop/period/dot I will look into this later this evening on how best to resolve this.
wrong alpha value when using rgba
When i use the RGBA method i the the alpha value as a comma value. This should be with a dot instead.
So the alpha value: 80 should return 0.8 instad of 0,8.
Best regards
Steffen
Hi Steffan,
Thanks for reporting this to me.
When you are outputting the alpha value how are you using it, is there are any reason why you are not outputting the combined RGB or RGBA and Hex values?
I just want to understand your use of using the Alpha value on it's own.
I will look into a fix in the mean time. Perhaps a seperate value such as AlphaAsDecimal or similar you could use to output the value?
Cheers,
Warren :)
Hi Warren
I'm using the Alpha rgb value to specify the background of a div box. so it is used like this <div style="background: rgba(DynamicModel.color.rgba)">
This is as far as i remember the way the documentation suggests it. I have no specific need of using the alpha value on its own. But the rgba method returns the alpha value as a comma seperated number instead of a dot. I'm not sure if it could be a culture specific problem as decimal values in Denmark are seperated by comma?
Hi Steffan,
Ah OK so looks like a culture issue with my code and the decimal being stored as a comma as apposed to a fullstop/period/dot
I will look into this later this evening on how best to resolve this.
Warren
is working on a reply...