mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
graphics: Fix comments in ColorM.Apply
This commit is contained in:
parent
6ae67fc6dd
commit
31796150e7
@ -41,7 +41,7 @@ func (c *ColorM) Reset() {
|
||||
}
|
||||
|
||||
// Apply pre-multiplies a vector (r, g, b, a, 1) by the matrix
|
||||
// where r, g, b, and a are clr's values after un-multiplied alpha.
|
||||
// where r, g, b, and a are clr's values in straight-alpha format.
|
||||
// In other words, Apply calculates ColorM * (r, g, b, a, 1)^T.
|
||||
func (c *ColorM) Apply(clr color.Color) color.Color {
|
||||
return c.impl.Apply(clr)
|
||||
|
Loading…
Reference in New Issue
Block a user