{"id":17838003,"url":"https://github.com/sampoder/golden-faces","last_synced_at":"2025-07-06T12:06:38.372Z","repository":{"id":46015237,"uuid":"420100524","full_name":"sampoder/golden-faces","owner":"sampoder","description":"⚱️ Web app to calculate the ratios of your face and comparing the average to the Golden Ratio","archived":false,"fork":false,"pushed_at":"2021-11-22T12:43:10.000Z","size":178,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T08:51:08.418Z","etag":null,"topics":["maths","p5js"],"latest_commit_sha":null,"homepage":"https://grt.sampoder.com","language":"JavaScript","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/sampoder.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}},"created_at":"2021-10-22T13:02:23.000Z","updated_at":"2024-12-11T05:31:26.000Z","dependencies_parsed_at":"2022-08-02T15:30:09.520Z","dependency_job_id":null,"html_url":"https://github.com/sampoder/golden-faces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sampoder/golden-faces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fgolden-faces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fgolden-faces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fgolden-faces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fgolden-faces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sampoder","download_url":"https://codeload.github.com/sampoder/golden-faces/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fgolden-faces/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263897921,"owners_count":23526831,"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":["maths","p5js"],"created_at":"2024-10-27T20:49:47.655Z","updated_at":"2025-07-06T12:06:38.343Z","avatar_url":"https://github.com/sampoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How Gold is Your Face?\n\nFor this year's Maths Week, I've built a web app that uses a photo to calculate a set of ratios based on measurements of the user's facial features. It then calculates the mean average of those ratios and compares them to the infamous golden ratio: `1.61803398875`.\n\nMany have theorised that having a face that is close to the golden ratio will mean you have \"a beautiful face\". A fun fact that I learnt this Maths Week was that the Mona Lisa has a face that closely follows the golden ratio! Maybe that's why people line up for hours to view it? But ultimately the definition of \"a beautiful face\" is subjective, as we learnt in TOK.\n\nTo build the web app I used p5.js, a programming library focused around graphics that builds on top of JavaScript \u0026 the HTML Canvas element. The entire codebase has been open sourced at https://github.com/sampoder/golden-faces/ but here is a short snippet of my code that sets up the camera:\n\n```javascript\ncnv = createCanvas(windowWidth, windowHeight);\ncnv.mouseClicked(handleMouseClicked);\ncnv.parent(\"canvas\");\ncapture = createCapture(VIDEO);\ncapture.hide();\n```\n\nIf you'd like to see how golden your own face is you can use the app at https://grt.sampoder.com \u0026 compare your result with other members of the community at https://airtable.com/shri5Iq1UD1PaYppJ. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampoder%2Fgolden-faces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsampoder%2Fgolden-faces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampoder%2Fgolden-faces/lists"}