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

ebiten: add (*ColorScale).ScaleWithColorScale(ColorScale) #2687

Closed
10 tasks
hajimehoshi opened this issue Jun 30, 2023 · 0 comments
Closed
10 tasks

ebiten: add (*ColorScale).ScaleWithColorScale(ColorScale) #2687

hajimehoshi opened this issue Jun 30, 2023 · 0 comments
Labels
Milestone

Comments

@hajimehoshi
Copy link
Owner

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • Xbox
  • Web Browsers

What feature would you like to be added?

With ColorM, we could combine two matrices by (*ColorM).Concat. ColorScale should be able to do the same thing.

I suggest a new API ScaleWithColorScale:

func (c *ColorScale) ScaleWithColorScale(colorScale ColorScale)

This just mutiplies each component.

Why is this needed?

N/A

@hajimehoshi hajimehoshi added this to the v2.6.0 milestone Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant