{"id":25282488,"url":"https://github.com/mat06mat/kivy-3d-cube","last_synced_at":"2025-04-06T13:19:39.415Z","repository":{"id":276368094,"uuid":"929080319","full_name":"MAT06mat/Kivy-3D-cube","owner":"MAT06mat","description":"Exemple of 3D cube with Kivy in Python","archived":false,"fork":false,"pushed_at":"2025-02-07T19:32:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T20:28:27.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MAT06mat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-07T19:14:34.000Z","updated_at":"2025-02-07T19:32:30.000Z","dependencies_parsed_at":"2025-02-07T20:38:52.999Z","dependency_job_id":null,"html_url":"https://github.com/MAT06mat/Kivy-3D-cube","commit_stats":null,"previous_names":["mat06mat/kivy-3d-cube"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAT06mat%2FKivy-3D-cube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAT06mat%2FKivy-3D-cube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAT06mat%2FKivy-3D-cube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAT06mat%2FKivy-3D-cube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MAT06mat","download_url":"https://codeload.github.com/MAT06mat/Kivy-3D-cube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485362,"owners_count":20946411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-12T19:34:37.592Z","updated_at":"2025-04-06T13:19:39.384Z","avatar_url":"https://github.com/MAT06mat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kivy-3D-cube\n\nExample of 3D cube with Kivy in Python.\n\n## Description\n\nThis project demonstrates how to create a 3D cube using the Kivy framework in Python. Kivy is an open-source Python library for developing multitouch applications. This example showcases basic 3D rendering and interaction without using OpenGL or shaders.\n\n## Requirements\n\n- Python 3.x\n- Kivy\n- Numpy\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/yourusername/Kivy-3D-cube.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd Kivy-3D-cube\n    ```\n3. Install the required dependencies:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\nRun the `main.py` file to start the application:\n```sh\npython main.py\n```\n\n## main.py\n\nThe `main.py` file contains the code to create and display a 3D cube using Kivy. Below is a brief overview of the main components:\n\n- **FaceColors Class**: Defines the colors for each face of the cube using notation (U, R, F, D, L, B).\n- **CubeWidget Class**: Handles the 3D cube's properties and rendering.\n  - **angle**: ListProperty to store the rotation angles of the cube.\n  - **scale**: NumericProperty to store the scale of the cube.\n  - **rotate_on_x, rotate_on_y**: BooleanProperties to control rotation on the x and y axes.\n  - **on_touch_down, on_touch_move, on_touch_up**: Methods to handle mouse interactions for rotating the cube.\n  - **update**: Method to update the cube's rotation and redraw it.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmat06mat%2Fkivy-3d-cube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmat06mat%2Fkivy-3d-cube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmat06mat%2Fkivy-3d-cube/lists"}