Skip to content

Commit 91ad638

Browse files
authored
Merge pull request #86 from gucio321/color-arg-names
extra types: rename NewColor's args from x,y,z,w to r,g,b,a
2 parents 49ecc8a + 03e6fd7 commit 91ad638

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extra_types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ type Color struct {
6767
Value Vec4
6868
}
6969

70-
func NewColor(x, y, z, w float32) Color {
70+
func NewColor(r, g, b, a float32) Color {
7171
return Color{
7272
Value: Vec4{
73-
X: x,
74-
Y: y,
75-
Z: z,
76-
W: w,
73+
X: r,
74+
Y: g,
75+
Z: b,
76+
W: a,
7777
},
7878
}
7979
}

0 commit comments

Comments
 (0)