Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

convert #RRGGBB hex value to #AARRGGBB

Tags:

php

What value would have #414141 as #AARRGGBB and what about #52b531? How can I convert this using PHP?

Regards,
Pentium10

like image 854
Pentium10 Avatar asked Feb 04 '10 21:02

Pentium10


People also ask

How do I convert an exchange rate?

If you know the exchange rate, divide your current currency by the exchange rate. For example, suppose that the USD/EUR exchange rate is 0.631 and you'd like to convert 100 USD into EUR.To accomplish this, simply multiply the 100 by 0.631 and the result is the number of EUR that you will receive: 63.10 EUR.

What day of the week is best to exchange money?

There is no specific best day to exchange currency, different factors such as political, economical factors, etc. play roles on currency exchange rates.


1 Answers

AA is the Alpha channel, and a straight conversion would be to set AA to FF to make it full opaque:

#414141 becomes #FF414141 

(Just to add: In some implementations it means the amount of Transparency where 00 means complete opaque and FF means fully transparent. In that case, #00414141 would be correct. But I think that is the exception)

like image 128
Michael Stum Avatar answered Sep 21 '22 21:09

Michael Stum