{"id":14966116,"url":"https://github.com/librasteve/raku-math-polygons","last_synced_at":"2026-02-14T03:37:55.035Z","repository":{"id":122841334,"uuid":"163401404","full_name":"librasteve/raku-Math-Polygons","owner":"librasteve","description":"Some perl6 polygon objects that draw using SVG","archived":false,"fork":false,"pushed_at":"2023-06-02T13:22:54.000Z","size":110,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T16:27:58.207Z","etag":null,"topics":["jupyter-notebook","math","mathematics","maths","perl6","polygons","svg"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/librasteve.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":"2018-12-28T11:10:53.000Z","updated_at":"2022-01-12T17:57:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c107f91-39f5-4e3f-85c5-4b83f845572c","html_url":"https://github.com/librasteve/raku-Math-Polygons","commit_stats":{"total_commits":114,"total_committers":3,"mean_commits":38.0,"dds":0.5,"last_synced_commit":"72d1c932e93aa231604aa4a0cd84788b280b11fc"},"previous_names":["librasteve/raku-math-polygons"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/librasteve/raku-Math-Polygons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librasteve%2Fraku-Math-Polygons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librasteve%2Fraku-Math-Polygons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librasteve%2Fraku-Math-Polygons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librasteve%2Fraku-Math-Polygons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/librasteve","download_url":"https://codeload.github.com/librasteve/raku-Math-Polygons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librasteve%2Fraku-Math-Polygons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278358488,"owners_count":25973946,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["jupyter-notebook","math","mathematics","maths","perl6","polygons","svg"],"created_at":"2024-09-24T13:35:50.784Z","updated_at":"2025-10-04T18:44:13.118Z","avatar_url":"https://github.com/librasteve.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raku-Math-Polygons\nSome polygon objects that draw via SVG - an alpha with the potential to do inheritance of Parallelograms, Rhomboids, etc.\n\n![Build Status](https://github.com/librasteve/raku-math-polygons/actions/workflows/action.yml/badge.svg)\n\n# Instructions\nThere are three ways to consume this module:\n1. Jupyter Notebook local\n- Clone this repo locally on your machine\n- Do the Quick Start here Brian Duggan perl6 jupyter-notebook at \u003chttps://github.com/bduggan/p6-jupyter-kernel\u003e\n- From the root directory run *jupyter-notebook*\n2. Jupyter Notebook hosted on Binder\n- Click this badge =\u003e [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/librasteve/perl6-Math-Polygons/master)\n- Go to /eg and click Polygons.ipynb, then Run\n- If you are the first to build e.g. a new version this can take 24 mins or so and the Binder browser UI may lose hope - please just be patient (do not reload as this restarts the build)\n- If not, go to \u003cmybinder.org\u003e and paste this url \u003chttps://github.com/librasteve/perl6-Math-Polygons\u003e, then the ./Dockerfile will be used to (re)build and run on Jupyter at Binder\n3. Perl6 Module\n- *zef install Math::Polygons*\n\n# Synopsis\n```perl6\nuse Math::Polygons;\n\nmy $rectangle = Rectangle.new( \n    origin =\u003e Point.new(20, 20),\n    width  =\u003e 120, \n    height =\u003e 80  \n);\n\nmy $square = Square.new( \n    origin =\u003e Point.new(170, 20),\n    side   =\u003e 100 \n);\n\nmy \\A = Point.new( 20, 260);\nmy \\B = Point.new( 30, 200);\nmy \\C = Point.new(120, 145);\nmy \\D = Point.new(125, 250);\nmy $quadrilateral = Quadrilateral.new(\n    A, B, C, D,  \n);\n\nmy $triangle = Triangle.new(\n    fill =\u003e \"green\",\n    stroke =\u003e \"black\",\n    apex =\u003e Point.new(220, 160),\n    side =\u003e 100 \n);\n\nmy $drawing = Drawing.new( \n    elements =\u003e [ \n        $rectangle, \n        $square,\n        $quadrilateral,\n        $triangle,\n    ],\n);\n$drawing.serialize.say;\n```\n\n# Inspired by\n* Brian Duggan's perl6 jupyter-notebook at \u003chttps://github.com/bduggan/p6-jupyter-kernel\u003e\n* Jonathan Stowe's perl6 advent calendar [Christmas Tree](https://perl6advent.wordpress.com/2018/12/18/day-18-an-svg-christmas-tree/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrasteve%2Fraku-math-polygons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibrasteve%2Fraku-math-polygons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrasteve%2Fraku-math-polygons/lists"}