Automatically set the text color based on the background.
Helps you display things like colored labels.
bower install angular-color-contrast
<script src="color-contrast.js"></script>
colorContrast
as a module dependency to your app.var myApp = angular.module('myApp', ['colorContrast']);
View on Github - https://github.com/evert0n/angular-color-contrast/
Based of the awesome getContrastYIQ()
method from "Calculating Color Contrast" article by Brian Suda at 24 Ways.