mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
19bd785fc4
commit
8e2955f9c9
@ -85,14 +85,14 @@ func (c *ColorM) Concat(other ColorM) {
|
|||||||
|
|
||||||
// Scale scales the matrix by (r, g, b, a).
|
// Scale scales the matrix by (r, g, b, a).
|
||||||
//
|
//
|
||||||
// Deprecated: as of v2.5. Use the colorm package instead.
|
// Deprecated: as of v2.5. Use ColorScale or the colorm package instead.
|
||||||
func (c *ColorM) Scale(r, g, b, a float64) {
|
func (c *ColorM) Scale(r, g, b, a float64) {
|
||||||
c.impl = c.affineColorM().Scale(float32(r), float32(g), float32(b), float32(a))
|
c.impl = c.affineColorM().Scale(float32(r), float32(g), float32(b), float32(a))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ScaleWithColor scales the matrix by clr.
|
// ScaleWithColor scales the matrix by clr.
|
||||||
//
|
//
|
||||||
// Deprecated: as of v2.5. Use the colorm package instead.
|
// Deprecated: as of v2.5. Use ColorScale or the colorm package instead.
|
||||||
func (c *ColorM) ScaleWithColor(clr color.Color) {
|
func (c *ColorM) ScaleWithColor(clr color.Color) {
|
||||||
cr, cg, cb, ca := clr.RGBA()
|
cr, cg, cb, ca := clr.RGBA()
|
||||||
if ca == 0 {
|
if ca == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user