mirror of
https://github.com/golang/go
synced 2024-11-21 23:24:41 -07:00
image/color: rename modelYCbCr to yCbCrModel.
This matches the other color models. It seems that this was missed during the review of 5544073. R=nigeltao, david.crawshaw CC=golang-dev https://golang.org/cl/5536057
This commit is contained in:
parent
f203093852
commit
be93207c8f
@ -87,9 +87,9 @@ func (c YCbCr) RGBA() (uint32, uint32, uint32, uint32) {
|
||||
}
|
||||
|
||||
// YCbCrModel is the Model for Y'CbCr colors.
|
||||
var YCbCrModel Model = ModelFunc(modelYCbCr)
|
||||
var YCbCrModel Model = ModelFunc(yCbCrModel)
|
||||
|
||||
func modelYCbCr(c Color) Color {
|
||||
func yCbCrModel(c Color) Color {
|
||||
if _, ok := c.(YCbCr); ok {
|
||||
return c
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user