绘制星星
运行图
result.png代码改变(基于矩形的代码改变)
只需要修改坐标即可.
float [] starCoords = new float[] {
0.37f, -0.12f, 0.0f,
0.95f, 0.30f, 0.0f,
0.23f, 0.30f, 0.0f,
0.23f, 0.30f, 0.0f,
0.00f, 0.90f, 0.0f,
-0.23f, 0.30f, 0.0f,
-0.23f, 0.30f, 0.0f,
-0.95f, 0.30f, 0.0f,
-0.37f, -0.12f, 0.0f,
-0.37f, -0.12f, 0.0f,
-0.57f, -0.81f, 0.0f,
0.00f, -0.40f, 0.0f,
0.00f, -0.40f, 0.0f,
0.57f, -0.81f, 0.0f,
0.37f, -0.12f, 0.0f,
};
网友评论