{"id":15384460,"url":"https://github.com/danielgamage/drawbotmodules","last_synced_at":"2025-08-20T15:38:58.770Z","repository":{"id":146054089,"uuid":"64725223","full_name":"danielgamage/DrawBotModules","owner":"danielgamage","description":"DrawBot modules I make / use","archived":false,"fork":false,"pushed_at":"2016-08-02T05:30:18.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T23:29:30.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/danielgamage.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":"2016-08-02T04:52:21.000Z","updated_at":"2023-04-10T13:22:26.000Z","dependencies_parsed_at":"2023-07-31T08:01:26.234Z","dependency_job_id":null,"html_url":"https://github.com/danielgamage/DrawBotModules","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"cad43712021921d783e188ba784ca15f169cee56"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgamage%2FDrawBotModules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgamage%2FDrawBotModules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgamage%2FDrawBotModules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgamage%2FDrawBotModules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgamage","download_url":"https://codeload.github.com/danielgamage/DrawBotModules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239942794,"owners_count":19722336,"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-01T14:42:04.982Z","updated_at":"2025-02-21T02:15:33.559Z","avatar_url":"https://github.com/danielgamage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DrawBotModules\n[DrawBot](http://www.drawbot.com/) modules I make / use\n```python\nfrom DrawBotModules import Color\n\nfg = Color.hex('#face')\nbg = Color.hex('223344')\n```\n\n## Color\n### Color.hex(_string_)\nThe `Color.hex` interface parses hex strings into DrawBot-compatible RGBA floats. It supports several formats:\n\n- `#rgb`\n- `#rgba`\n- `#rrggbb`\n- `#rrggbbaa`\n\nIn all cases, the leading hashbang (`#`) is optional\n\nThe class then exposes the following properties:\n\n#### `Color.r` _int_\n#### `Color.g` _int_\n#### `Color.b` _int_\n#### `Color.a` _int_\nDefault: `1`\n#### `Color.tuple` _tuple_\nDefault: `(Color.r, Color.g, Color.b, Color.a)`\n\nWith this, you can either manually insert `rgba` values or splat / spread the tuple into a DrawBot `fill`/`stroke` function:\n\n```python\nfg = Color.Hex('#002B36')\nt = FormattedString()\nt.fill(*fg.tuple)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgamage%2Fdrawbotmodules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgamage%2Fdrawbotmodules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgamage%2Fdrawbotmodules/lists"}