Closed RobErskine closed 2 years ago
Hey there. I love this plugin. I would love the ability to convert from RGB to Hex. Is there any way we can convert the private function rgbToHex to a public function?
https://github.com/whoisjuan/craft-color-mixer/blob/v1/src/twigextensions/CraftColorMixerTwigExtension.php#L363
If you're open to pull requests let me know and I can submit that and update the documentation! Thanks ;D
Yeah! If you want, please send a PR and I will merge it! Cheers!
We've revamped the color conversion filters to support converting from and to just about anything in 3.0.0
For this, you can use {{ 'rgb(255,0,255)' | toHex }}
{{ 'rgb(255,0,255)' | toHex }}
Check out the updated docs for more.
Hey there. I love this plugin. I would love the ability to convert from RGB to Hex. Is there any way we can convert the private function rgbToHex to a public function?
https://github.com/whoisjuan/craft-color-mixer/blob/v1/src/twigextensions/CraftColorMixerTwigExtension.php#L363
If you're open to pull requests let me know and I can submit that and update the documentation! Thanks ;D