12 lines
179 B
Go
12 lines
179 B
Go
|
package sdlui
|
||
|
|
||
|
import (
|
||
|
"image/color"
|
||
|
|
||
|
"github.com/veandco/go-sdl2/sdl"
|
||
|
)
|
||
|
|
||
|
func ColorSDL(c color.Color) sdl.Color {
|
||
|
return sdl.Color(color.RGBAModel.Convert(c).(color.RGBA))
|
||
|
}
|