Skip to content

Convert Image to Greyscale #2879

Closed Answered by hajimehoshi
ab623 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use ColorM.

https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/colorm#ColorM.ChangeHSV

op.ColorM.ChangeHSV(0, 0, 1)

See also examples/hsv

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ab623
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants