picogl.backend.glut.cube_data
Cube vertex and color data represented as NumPy arrays.
This module defines two NumPy arrays: CUBE_VERTICES and CUBE_COLORS, which are used to represent the vertices and corresponding RGB color data of a 3D cube. The vertex data is defined in 3D space (x, y, z), while the color data provides RGB values for each vertex. Both arrays are of dtype float32. These arrays are typically utilized in applications like 3D graphics rendering.
- picogl.backend.glut.cube_data.CUBE_VERTICES[source]
A NumPy array containing 3D coordinates of the cube’s vertices. Each vertex is represented as three consecutive floating-point values (x, y, z). The total shape of the data is determined by the number of vertices times 3.
- Type:
- picogl.backend.glut.cube_data.CUBE_COLORS[source]
A NumPy array containing RGB color values for each vertex. Each color is represented as three consecutive floating-point values (r, g, b). The total shape of the data matches the number of vertices times 3.
- Type: