Skip to content
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

Items image constructor #14

Open
Hermesiss opened this issue Jun 8, 2019 · 0 comments
Open

Items image constructor #14

Hermesiss opened this issue Jun 8, 2019 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@Hermesiss
Copy link
Member

Hermesiss commented Jun 8, 2019

Implement method

Texture2D CreateTexture(Texture2D original, 
    Color baseColor, 
    Color additionalColor, 
    Color effectColor);

Use R channel as monochrome background, G and B channels as masks for additionalColor and effectColor accordingly.
A without changes.
Mask for baseColor is A exclude G and B.
Place colors on background using Multiply mode

Example colors: #c5c5c5 #ff0000 #5eff00

Masked image (download and use for testing):
image
Masks (R G B A):
image
Processed image:
image

@Hermesiss Hermesiss added the good first issue Good for newcomers label Jun 8, 2019
@Hermesiss Hermesiss pinned this issue Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants