buberdds / angular-bootstrap-colorpicker

Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.
MIT License
419 stars 226 forks source link

Luminance #58

Closed csabattilas closed 9 years ago

csabattilas commented 10 years ago

Recently I needed to restrict the picked colour to a certain luminance and I think It would be nice to have something like colorpicker-max-luminance, E.g. colorpicker-max-luminance="#555555", this would mean that the selected color cannot be more luminance than #555555.

I already forked the project and added this using the Digital CCIR601 formula (Y = 0.299 R + 0.587 G + 0.114 B) to calculate luminance.

Let me know if you would like me to add this to the master.

Thank you. .

buberdds commented 9 years ago

Thanks, I think there is no need for this feature in 'master' branch.