phpColors icon indicating copy to clipboard operation
phpColors copied to clipboard

Method chaining

Open DevDavido opened this issue 7 years ago • 2 comments

Thanks for this nice library! One thing that I constantly encounter is that I can't perform multiple actions (lighten, mix, ...) on one color but instead need to recreate Color objects for each step. I would suggest to return $this instead self::hslToHex()? This would break compatibility, so it would need an major version jump? Would go well though with @finwe's pull request #35.

DevDavido avatar Mar 26 '18 05:03 DevDavido

Would you merge such a pull request @mexitek?

DevDavido avatar Mar 26 '18 05:03 DevDavido

Yes I would. Feel free to contribute. We can version bump if necessary.

mexitek avatar Mar 26 '18 06:03 mexitek