Skip to content

Add COLOR:Copy() method #2294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

wrefgtzweve
Copy link
Contributor

Adds a way to copy a color object over to a new object, useful when you want to keep the original color and you're working with functions that change the original like for example color:AddHue()

Thanks to https://github.com/TankNut for suggesting directly setting the metatable instead of using self:Unpack.

@robotboy655 robotboy655 added the Addition The pull request adds new functionality. label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addition The pull request adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants