Skip to content

Commit

Permalink
added: DrawWithColorM comment
Browse files Browse the repository at this point in the history
  • Loading branch information
setanarut committed Dec 17, 2024
1 parent 7fadb41 commit cfc1cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (cam *Camera) Draw(worldObject *ebiten.Image, worldObjectOps *ebiten.DrawIm
cam.drawOptions.GeoM.Reset()
}

// Draw applies the Camera's geometric transformation then draws the object on the screen with drawing options.
// DrawWithColorM applies the Camera's geometric transformation then draws the object on the screen with colorm package drawing options.
func (cam *Camera) DrawWithColorM(worldObject *ebiten.Image, cm colorm.ColorM, worldObjectOps *colorm.DrawImageOptions, screen *ebiten.Image) {
cam.drawOptionsCM = worldObjectOps
cam.ApplyCameraTransform(&cam.drawOptionsCM.GeoM)
Expand Down

0 comments on commit cfc1cb0

Please sign in to comment.