{"id":19012542,"url":"https://github.com/kennfatt/snowflakes","last_synced_at":"2025-06-14T23:38:29.617Z","repository":{"id":133857846,"uuid":"283964834","full_name":"KennFatt/Snowflakes","owner":"KennFatt","description":"Graphic rendering using Piston and Glutin written in pure Rust","archived":false,"fork":false,"pushed_at":"2021-04-28T09:13:19.000Z","size":3409,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T22:11:31.106Z","etag":null,"topics":["2d-graphics","gl","graphics","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/KennFatt.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":"2020-07-31T06:53:21.000Z","updated_at":"2023-04-01T14:52:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"58fba714-2ef3-49b5-acb2-a8fe2d9872c1","html_url":"https://github.com/KennFatt/Snowflakes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennFatt%2FSnowflakes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennFatt%2FSnowflakes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennFatt%2FSnowflakes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennFatt%2FSnowflakes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KennFatt","download_url":"https://codeload.github.com/KennFatt/Snowflakes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240044440,"owners_count":19739183,"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":["2d-graphics","gl","graphics","rust"],"created_at":"2024-11-08T19:18:36.829Z","updated_at":"2025-02-21T15:50:44.453Z","avatar_url":"https://github.com/KennFatt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snowflakes\n\n![](./.assets/demo.gif)\n\nThis project is part of my boredum in quarantine, so I have to learn something new (Rust language) and then implement it with something fun!\n\nIkr, _nothing fancy_ here. My first attempt with Rust tho.\n\n## How to\n**build**\n```\ncargo build --release\n```\n\n**run**\n```\ncargo run --release\n```\n_Considering to use release mode._\n\n### Notes\nIf somebody or myself in the future wondering why I wrote this code:\n```rust\npub struct Snowflakes {\n    capacity: usize,\n    radius: Vec\u003cf64\u003e,\n    velocity: Vec\u003cf64\u003e,\n    x: Vec\u003cf64\u003e,\n    y: Vec\u003cf64\u003e,\n}\n\npub struct Snowflake {\n    pub id: usize,\n    pub radius: f64,\n    pub velocity: f64,\n    pub x: f64,\n    pub y: f64,\n}\n```\n\nhere is my explanation, first the struct `Snowflakes` is implement the SoA pattern. I'm not sure if it will perform well on heap allocation (those vectors). I want to use something like [FixedSizeArray](https://doc.rust-lang.org/beta/core/array/trait.FixedSizeArray.html) in the future if it's finally arrive as the stable features.\n\nLastly, the struct `Snowflake` is just a template for me to manipulate the data that I got from `Snowflakes` to more specific.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennfatt%2Fsnowflakes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkennfatt%2Fsnowflakes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennfatt%2Fsnowflakes/lists"}