Example #1
0
func drawFilledBox(x1, y1, x2, y2, color int) {
	C.Text_Foreground_Color(C.uint8_t(color))
	C.Set_Geometric_Coordinate(C.uint16_t(x1), C.uint16_t(y1), C.uint16_t(x2), C.uint16_t(y2))
	C.RAIO_StartDrawing(C.SQUARE_FILL)
}
Example #2
0
func drawLine(x1, y1, x2, y2, color int) {
	C.Text_Foreground_Color(C.uint8_t(color))
	C.Set_Geometric_Coordinate(C.uint16_t(x1), C.uint16_t(y1), C.uint16_t(x2), C.uint16_t(y2))
	C.RAIO_StartDrawing(C.LINE)
}