picogl.backend.glut.cube_data ============================= .. py:module:: picogl.backend.glut.cube_data .. autoapi-nested-parse:: 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. .. attribute:: CUBE_VERTICES 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: numpy.ndarray .. attribute:: CUBE_COLORS 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: numpy.ndarray Attributes ---------- .. autoapisummary:: picogl.backend.glut.cube_data.CUBE_VERTICES picogl.backend.glut.cube_data.CUBE_COLORS Module Contents --------------- .. py:data:: CUBE_VERTICES .. py:data:: CUBE_COLORS