@matteor1994/color-utility
v1.0.3
Published
just a little color utility library for web dev
Downloads
1
Readme
��#�#� �F�u�n�c�t�i�o�n�s� � � � �<�d�l�>� � �<�d�t�>�<�a� �h�r�e�f�=�"�#�s�e�t�O�p�a�c�i�t�y�"�>�s�e�t�O�p�a�c�i�t�y�(�h�e�x�C�o�l�o�r�,� �o�p�a�c�i�t�y�)�<�/�a�>�<�/�d�t�>� � �<�d�d�>�<�p�>�S�e�t� �t�h�e� �o�p�a�c�i�t�y� �o�f� �a� �h�e�x� �c�o�l�o�r�<�/�p�>� � �<�/�d�d�>� � �<�d�t�>�<�a� �h�r�e�f�=�"�#�f�r�o�m�C�o�l�o�r�S�t�r�i�n�g�T�o�R�G�B�A�"�>�f�r�o�m�C�o�l�o�r�S�t�r�i�n�g�T�o�R�G�B�A�(�c�o�l�o�r�S�t�r�i�n�g�)�<�/�a�>�<�/�d�t�>� � �<�d�d�>�<�p�>�C�o�n�v�e�r�t�s� �a� �c�o�l�o�r� �s�t�r�i�n�g� �t�o� �a�n� �r�g�b�a� �s�t�r�i�n�g�<�/�p�>� � �<�/�d�d�>� � �<�d�t�>�<�a� �h�r�e�f�=�"�#�g�e�t�C�o�n�t�r�a�s�t�i�n�g�C�o�l�o�r�"�>�g�e�t�C�o�n�t�r�a�s�t�i�n�g�C�o�l�o�r�(�h�e�x�C�o�l�o�r�)�<�/�a�>�<�/�d�t�>� � �<�d�d�>�<�p�>�G�i�v�e�n� �a� �h�e�x� �c�o�l�o�r�,� �r�e�t�u�r�n� �t�h�e� �c�o�l�o�r� �t�h�a�t� �w�o�u�l�d� �b�e� �v�i�s�i�b�l�e� �a�g�a�i�n�s�t� �t�h�e� �b�a�c�k�g�r�o�u�n�d�<�/�p�>� � �<�/�d�d�>� � �<�/�d�l�>� � � � �<�a� �n�a�m�e�=�"�s�e�t�O�p�a�c�i�t�y�"�>�<�/�a�>� � � � �#�#� �s�e�t�O�p�a�c�i�t�y�(�h�e�x�C�o�l�o�r�,� �o�p�a�c�i�t�y�)� � �S�e�t� �t�h�e� �o�p�a�c�i�t�y� �o�f� �a� �h�e�x� �c�o�l�o�r� � � � ���K�i�n�d���:� �g�l�o�b�a�l� �f�u�n�c�t�i�o�n� � � � ���R�e�t�u�r�n�s���:� �T�h�e� �h�e�x� �c�o�l�o�r� �w�i�t�h� �t�h�e� �o�p�a�c�i�t�y� �a�p�p�l�i�e�d�.� � � � � � �|� �P�a�r�a�m� �|� �D�e�s�c�r�i�p�t�i�o�n� �|� � �|� �-�-�-� �|� �-�-�-� �|� � �|� �h�e�x�C�o�l�o�r� �|� �t�h�e� �h�e�x� �c�o�l�o�r� �c�o�d�e� �w�i�t�h� �t�h�e� �#� �s�i�g�n�.� �|� � �|� �o�p�a�c�i�t�y� �|� �T�h�e� �o�p�a�c�i�t�y� �o�f� �t�h�e� �c�o�l�o�r�.� �|� � � � �<�a� �n�a�m�e�=�"�f�r�o�m�C�o�l�o�r�S�t�r�i�n�g�T�o�R�G�B�A�"�>�<�/�a�>� � � � �#�#� �f�r�o�m�C�o�l�o�r�S�t�r�i�n�g�T�o�R�G�B�A�(�c�o�l�o�r�S�t�r�i�n�g�)� � �C�o�n�v�e�r�t�s� �a� �c�o�l�o�r� �s�t�r�i�n�g� �t�o� �a�n� �r�g�b�a� �s�t�r�i�n�g� � � � ���K�i�n�d���:� �g�l�o�b�a�l� �f�u�n�c�t�i�o�n� � � � ���R�e�t�u�r�n�s���:� �a� �s�t�r�i�n�g� �t�h�a�t� �r�e�p�r�e�s�e�n�t�s� �t�h�e� �c�o�l�o�r� �i�n� �t�h�e� �f�o�r�m�a�t� �o�f� �r�g�b�(�r�,� �g�,� �b�,� �a�)�.� � � � � � �|� �P�a�r�a�m� �|� �D�e�s�c�r�i�p�t�i�o�n� �|� � �|� �-�-�-� �|� �-�-�-� �|� � �|� �c�o�l�o�r�S�t�r�i�n�g� �|� �T�h�e� �c�o�l�o�r� �s�t�r�i�n�g� �t�o� �c�o�n�v�e�r�t� �t�o� �a�n� �R�G�B�A� �s�t�r�i�n�g�.� �|� � � � �<�a� �n�a�m�e�=�"�g�e�t�C�o�n�t�r�a�s�t�i�n�g�C�o�l�o�r�"�>�<�/�a�>� � � � �#�#� �g�e�t�C�o�n�t�r�a�s�t�i�n�g�C�o�l�o�r�(�h�e�x�C�o�l�o�r�)� � �G�i�v�e�n� �a� �h�e�x� �c�o�l�o�r�,� �r�e�t�u�r�n� �t�h�e� �c�o�l�o�r� �t�h�a�t� �w�o�u�l�d� �b�e� �v�i�s�i�b�l�e� �a�g�a�i�n�s�t� �t�h�e� �b�a�c�k�g�r�o�u�n�d� � � � ���K�i�n�d���:� �g�l�o�b�a�l� �f�u�n�c�t�i�o�n� � � � ���R�e�t�u�r�n�s���:� �a� �h�e�x� �c�o�l�o�r� �c�o�d�e� �t�h�a�t� �i�s� �e�i�t�h�e�r� �b�l�a�c�k� �o�r� �w�h�i�t�e�.� � � � � � �|� �P�a�r�a�m� �|� �D�e�s�c�r�i�p�t�i�o�n� �|� � �|� �-�-�-� �|� �-�-�-� �|� � �|� �h�e�x�C�o�l�o�r� �|� �T�h�e� �h�e�x� �c�o�l�o�r� �c�o�d�e� �t�o� �c�o�n�v�e�r�t�.� �|� � � � �