{"id":17786193,"url":"https://github.com/healscodes/pebble-pathanimation","last_synced_at":"2025-03-16T05:31:14.707Z","repository":{"id":12909089,"uuid":"15586385","full_name":"HealsCodes/Pebble-PathAnimation","owner":"HealsCodes","description":"A GPath based implementation to be used in the animation framework on Pebble (SDK2.0+)","archived":false,"fork":false,"pushed_at":"2014-01-02T15:38:50.000Z","size":136,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T05:23:21.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HealsCodes.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}},"created_at":"2014-01-02T15:09:01.000Z","updated_at":"2023-02-18T10:07:57.000Z","dependencies_parsed_at":"2022-09-17T05:52:28.819Z","dependency_job_id":null,"html_url":"https://github.com/HealsCodes/Pebble-PathAnimation","commit_stats":null,"previous_names":["healscodes/pebble-pathanimation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HealsCodes%2FPebble-PathAnimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HealsCodes%2FPebble-PathAnimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HealsCodes%2FPebble-PathAnimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HealsCodes%2FPebble-PathAnimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HealsCodes","download_url":"https://codeload.github.com/HealsCodes/Pebble-PathAnimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806032,"owners_count":20350773,"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":"2024-10-27T09:22:40.405Z","updated_at":"2025-03-16T05:31:14.127Z","avatar_url":"https://github.com/HealsCodes.png","language":"C","readme":"Pebble-PathAnimation\n====================\n\nA GPath based implementation to be used in the animation framework on Pebble (SDK2.0+)\n\nThis \"subclass\" for the Pebble animation framework provides smooth transitions for GPath objects.\nBasically one creates a GPath and then uses this framework to morph it betwenn any number of GPathInfo\nlayouts as long as they share the same number of path points.\n\nA simple construction / destruction looks like this:\n\n```C\n#include \"path-animation.h\"\n\nstatic GPath* path;\nstatic PathAnimation* animation;\n\nstatic const GPathInfo path_a { ... };\nstatic const GPathInfo path_b { ... };\n\nvoid on_window_loaded( Window* window )\n{\n  // create the path *first*\n  path = gpath_create( \u0026path_a );\n  \n  // then create and setup the PathAnimation\n  animation = path_animation_create( path, NULL, \u0026path_b );\n  \n  // this will call layer_mark_dirty() for the window layer on each animation frame\n  path_animation_setup_update_layer( window_get_layer( window ) );\n  \n  // all other animation_* methods except for _destroy and _set_handlers are supported\n  animation_schedule( animation );\n}\n\nvoid on_window_unloaded( Window* window )\n{\n  // destroy the PathAnimation *first*\n  path_animation_destroy( animation );\n  \n  // then destroy the GPath object - other way around *WILL LEAK MEMORY*\n  gpath_destroy( path );\n}\n```\n\nSee demo subdirectory for a working pebble sample (also in shown in the video link below).\n\nI can't embed the [demo video](http://vimeo.com/83234539) here for obvious reasons but look for yourself..\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealscodes%2Fpebble-pathanimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealscodes%2Fpebble-pathanimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealscodes%2Fpebble-pathanimation/lists"}