{"id":31365750,"url":"https://github.com/developer0hye/color-space-3d-visualization","last_synced_at":"2026-02-14T12:03:00.333Z","repository":{"id":221354485,"uuid":"754148208","full_name":"developer0hye/Color-Space-3D-Visualization","owner":"developer0hye","description":"Visualize the Color Space in 3D using Plotly on Google Colab.","archived":false,"fork":false,"pushed_at":"2024-02-07T14:00:42.000Z","size":425,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T09:59:15.655Z","etag":null,"topics":["3d","3d-visualization","color-space","hsv","rgb","visualization","yuv"],"latest_commit_sha":null,"homepage":"","language":null,"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/developer0hye.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}},"created_at":"2024-02-07T13:49:57.000Z","updated_at":"2024-02-07T13:54:07.000Z","dependencies_parsed_at":"2024-02-07T15:06:52.617Z","dependency_job_id":null,"html_url":"https://github.com/developer0hye/Color-Space-3D-Visualization","commit_stats":null,"previous_names":["developer0hye/color-space-3d-visualization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developer0hye/Color-Space-3D-Visualization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2FColor-Space-3D-Visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2FColor-Space-3D-Visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2FColor-Space-3D-Visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2FColor-Space-3D-Visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer0hye","download_url":"https://codeload.github.com/developer0hye/Color-Space-3D-Visualization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer0hye%2FColor-Space-3D-Visualization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["3d","3d-visualization","color-space","hsv","rgb","visualization","yuv"],"created_at":"2025-09-27T09:59:07.011Z","updated_at":"2026-02-14T12:03:00.328Z","avatar_url":"https://github.com/developer0hye.png","language":null,"readme":"# Color-Space-3D-Visualization\nVisualize the Color Space in 3D using Plotly on [Google Colab](https://colab.research.google.com/drive/15oyszKCTJ1wtVt1y0fqYfRHIYtyvYWoM?usp=sharing).\n\n```bash\n !pip install plotly\n```\n\n```python\nimport plotly.graph_objects as go\nimport numpy as np\n\n# Define RGB values\nresolution = 32\nrgb_range = np.linspace(0, 255, resolution, dtype=float)\nmesh_r, mesh_g, mesh_b = np.meshgrid(rgb_range, rgb_range, rgb_range, indexing='ij')\n\n# Convert RGB to YUV, see https://stackoverflow.com/questions/2905597/how-to-deal-with-rgb-to-yuv-conversion for reference\ny = 0.299 * mesh_r + 0.587 * mesh_g + 0.114 * mesh_b\nu = 128 - 0.168736 * mesh_r - 0.331264 * mesh_g + 0.5 * mesh_b\nv = 128 + 0.5 * mesh_r - 0.418688 * mesh_g - 0.081312 * mesh_b\n\n# Set color of each point based on its RGB value\ncolors = np.stack([mesh_r, mesh_g, mesh_b], axis=-1)\ncolors = colors.reshape(-1, 3)\n\n# Create Plotly 3D scatter plot\nfig = go.Figure(data=[go.Scatter3d(\n    x=y.flatten(),\n    y=u.flatten(),\n    z=v.flatten(),\n    mode='markers',\n    marker=dict(\n        size=2,  # Adjust marker size\n        color=['rgb({},{},{})'.format(r,g,b) for r,g,b in colors],  # Set color based on RGB values\n        opacity=0.8\n    )\n)])\n\n# Set labels\nfig.update_layout(\n    scene = dict(\n        xaxis_title='Y',\n        yaxis_title='U',\n        zaxis_title='V'\n    ),\n    margin=dict(r=0, b=0, l=0, t=0)  # Adjust margins\n)\n\nfig.show()\n```\n\n\n![yuv example1](image.png)\n\nExperience 3D!\n\n![yuv example2](image-1.png)\n\n![yuv example3](image-2.png)\n\n![yuv example4](image-3.png)\n\n\n## Credits\nThis project was generated with the assistance of ChatGPT-4, an advanced language model developed by OpenAI. The tool's concept, code snippets, and documentation were crafted through interactive sessions with the AI, showcasing the potential of AI-assisted software development.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper0hye%2Fcolor-space-3d-visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper0hye%2Fcolor-space-3d-visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper0hye%2Fcolor-space-3d-visualization/lists"}