Add a clarifying comment in imdraw push
This commit is contained in:
parent
6a71f07d12
commit
d2d1f03c32
|
@ -128,7 +128,9 @@ func (imd *IMDraw) Draw(t pixel.Target) {
|
|||
// Push adds some points to the IM queue. All Pushed points will have the same properties except for
|
||||
// the position.
|
||||
func (imd *IMDraw) Push(pts ...pixel.Vec) {
|
||||
//Assert that Color is of type pixel.RGBA,
|
||||
if _, ok := imd.Color.(pixel.RGBA); !ok {
|
||||
//otherwise cast it
|
||||
imd.Color = pixel.ToRGBA(imd.Color)
|
||||
}
|
||||
opts := point{
|
||||
|
|
Loading…
Reference in New Issue