{"id":20828797,"url":"https://github.com/perty/elm-clock","last_synced_at":"2025-08-01T00:37:53.231Z","repository":{"id":137744456,"uuid":"222264216","full_name":"perty/elm-clock","owner":"perty","description":"A clock using Elm and SVG.","archived":false,"fork":false,"pushed_at":"2022-10-06T09:15:30.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T07:44:32.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-17T14:53:01.000Z","updated_at":"2022-06-27T15:31:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"959aeec3-05f2-47cc-8336-b3568fee06d6","html_url":"https://github.com/perty/elm-clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perty/elm-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Felm-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Felm-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Felm-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Felm-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perty","download_url":"https://codeload.github.com/perty/elm-clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perty%2Felm-clock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261604102,"owners_count":23183593,"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-11-17T23:18:27.903Z","updated_at":"2025-06-24T04:31:43.060Z","avatar_url":"https://github.com/perty.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-clock\nAn analog clock that adjusts its size. Written in Elm and SVG.\n\n## About\n\nDemonstrates how to get the local time zone and \nusing SVG to draw a clock. \n\nThe clock adapts its size to the parent container.\n\n![screen shot](./clock.png)\n\n## Clock face\n\nThe function `clockFace` draws a circle and calls\nthe helper `tickMarks` to mark the perimeter with minute\nindicators. \n\nThe clock has its center at (0,0) to make life\neasier. It is therefore translated (50,50) which\nis dependent on the size being (100,100).\n\n## Hands\n\nThe hands have different styles but have\nthe common problem of calculating the angle. \n\nThe angle is zero at 15 minutes passed so to\ncalculate the angle, you first reduce by 15 \nand multiply 360 (degrees) and then divide\nby 60 (minutes).\n\nTo draw a hand, it is transformed using the SVG\n`transform` function with the `rotate` argument, passing\nthe angle as a parameter.\n\nThe hand is a line from center of the clock and\nsome circle or polygon, depending on which hand.\n\n## Letters E, L, M\n\nFor some reason, these letters appear on the clock face. They are not\nof any font, they are polygons.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperty%2Felm-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperty%2Felm-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperty%2Felm-clock/lists"}