Example #1
0
func CreateColorHTML(html string) Color {
	cs := C.CString(html)
	defer C.free(unsafe.Pointer(cs))

	return Color(C.al_color_html(cs))
}
Example #2
0
func Html(s string) *allegro.Color {
	hs := C.CString(s)
	defer C.free(unsafe.Pointer(hs))
	r := C.al_color_html(hs)
	return (*allegro.Color)(unsafe.Pointer(&r))
}