=============================================
<BoxLayoutWidget>:
canvas:
Color:
rgba:[1,1,1,1]
# 三角形
Ellipse:
size:self.width*0.5,self.height*0.15
pos:self.x+100,self.y+1
segments:3
source:'back.jpg'
=======================或者========================
<BoxLayoutWidget>:
canvas:
Color:
rgba:[1,1,1,1]
# 三角形
Triangle:
# 三个顶点
points:310,250, 640,280, 480,500
source:'back.jpg'
===================多边形========================
<BoxLayoutWidget>:
canvas:
Color:
rgba:[1,1,1,1]
# 三角形
Triangle:
points:20,15,15,200,40,30
source:'back.jpg'
# 多边形
Quad:
points:310,250,640,280,480,500,380,520
source:'back.jpg'
==============线条======================
<BoxLayoutWidget>:
canvas:
Color:
rgba:[1,1,1,1]
# 线条
Line:
points:310,350,640,380
# 形状
Point:
# 下面是两个点
points:300,200,300,300
# 像素
pointsize:5