{"id":27707733,"url":"https://github.com/conradsollitt/css-houdini-fractals","last_synced_at":"2025-06-16T04:40:12.919Z","repository":{"id":177505002,"uuid":"321590636","full_name":"ConradSollitt/css-houdini-fractals","owner":"ConradSollitt","description":"🎨 Drawing Fractals with CSS Houdini","archived":false,"fork":false,"pushed_at":"2024-05-18T10:06:51.000Z","size":1871,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T03:53:51.046Z","etag":null,"topics":["css","css-houdini","css3","fractal","fractals"],"latest_commit_sha":null,"homepage":"https://conradsollitt.github.io/css-houdini-fractals/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConradSollitt.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":"2020-12-15T07:44:33.000Z","updated_at":"2025-01-19T19:25:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"10a67c2e-447a-4824-bb8a-4277cb4a3ee0","html_url":"https://github.com/ConradSollitt/css-houdini-fractals","commit_stats":null,"previous_names":["conradsollitt/css-houdini-fractals"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ConradSollitt/css-houdini-fractals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConradSollitt%2Fcss-houdini-fractals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConradSollitt%2Fcss-houdini-fractals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConradSollitt%2Fcss-houdini-fractals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConradSollitt%2Fcss-houdini-fractals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConradSollitt","download_url":"https://codeload.github.com/ConradSollitt/css-houdini-fractals/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConradSollitt%2Fcss-houdini-fractals/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260097484,"owners_count":22958210,"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":["css","css-houdini","css3","fractal","fractals"],"created_at":"2025-04-26T07:58:27.875Z","updated_at":"2025-06-16T04:40:12.870Z","avatar_url":"https://github.com/ConradSollitt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS Houdini Fractals\n\nDrawing Fractals with CSS Houdini.\n\nThis demo was created for https://github.com/GoogleChromeLabs/houdini.how and can be also previewed on the main Chrome Labs site https://houdini.how/\n\n**From:** https://developer.mozilla.org/en-US/docs/Web/Houdini\n\u003e Houdini is a set of low-level APIs that exposes parts of the CSS engine, giving developers the power to extend CSS by hooking into the styling and layout process of a browser’s rendering engine.\n\n## 🌐 Try it online!\n\nhttps://conradsollitt.github.io/css-houdini-fractals/\n\n## 🚀 Download locally\n\nThis repository has zero dependencies. Only the [fractals.js](fractals.js) file is required to use it with any site. If you would like to try the demo locally download this repository and follow the commands below.\n\n```bash\n# If you have node installed:\nnpm start\n\n# If you do not have node installed and have Python installed then depending on\n# the version Python and OS installed one of the following commands should work:\npython3 -m http.server\npython -m http.server\npython -m SimpleHTTPServer\n```\n\n\u003cimg src=\"img/css-houdini-fractals.png\" alt=\"CSS Houdini Fractals\"\u003e\n\n\u003cimg src=\"img/fractals-1.png\" alt=\"CSS Houdini Fractals\"\u003e\n\n\u003cimg src=\"img/fractals-2.png\" alt=\"CSS Houdini Fractals\"\u003e\n\n\u003cimg src=\"img/fractals-3.png\" alt=\"CSS Houdini Fractals\"\u003e\n\n## 💡 Usage\n\n### Use CSS Houdini API to import the [fractals.js](fractals.js) file\n\n```js\n// Modern Browsers - Import JavaScript file from CDN\nif ('paintWorklet' in CSS) {\n    CSS.paintWorklet.addModule('https://unpkg.com/css-houdini-fractals@1.1.0/fractals.js');\n}\n\n// Modern Browsers - Using Local build, only a single file is needed\nif ('paintWorklet' in CSS) {\n    CSS.paintWorklet.addModule('fractals.js');\n}\n```\n\n### Use the [css-paint-polyfill] Polyfill to support all Modern Browsers (won't work with IE)\n\nhttps://github.com/GoogleChromeLabs/css-paint-polyfill\n\n```html\n\u003cscript type=\"module\"\u003e\n    (async function () {\n        if (CSS['paintWorklet'] === undefined) {\n            await import('https://unpkg.com/css-paint-polyfill');\n        }\n        CSS.paintWorklet.addModule('fractals.js');\n    })();\n\u003c/script\u003e\n```\n\n### HTML\n\nThe type of HTML element and class name does not matter, rather height and width are needed.\n\n```html\n\u003cstyle\u003e\n    .fractals { height:400px; width:400px; }\n\u003c/style\u003e\n\u003cdiv class=\"fractals\"\u003e\u003c/div\u003e\n\u003csection class=\"fractals\"\u003e\u003c/section\u003e\n```\n\n### CSS Options\n\n```css\n/*\n    By default only `background-image: paint(fractals)` is needed.\n*/\n.fractals {\n    background-image: paint(fractals);\n}\n\n/*\n    The example below shows all options with default values, except\n    for [--colors] which is empty resulting in black lines.\n\n    [--colors] are dynamic and based on the number of colors included.\n    The delimiter for [--colors] is a space so these examples are all valid:\n        --colors: red green blue;\n        --colors: black;\n        --colors: #000 #222 #444 #666 #888 #aaa #ccc;\n\n    [--shape] = One of [line, circle, square]\n    [--debug-to-console] and [-show-origin] = 0 or 1\n*/\n.fractals {\n    --colors: red green blue cyan magenta yellow;\n    --angle: 30;\n    --starting-length-percent: 22;\n    --next-line-size: 0.8;\n    --shape: line;\n    --max-draw-count: 10000;\n    --debug-to-console: 0;\n    --show-origin: 0;\n    background-image: paint(fractals);\n}\n```\n\n## 🎨 CSS Houdini Links\n\n* https://houdini.how/\n* https://github.com/GoogleChromeLabs/houdini.how\n* https://developer.mozilla.org/en-US/docs/Web/Houdini\n\n## ❄️ Fractals\n\n* https://fractalfoundation.org/resources/what-are-fractals/\n* https://en.wikipedia.org/wiki/Fractal\n* https://mathworld.wolfram.com/Fractal.html\n* https://www.wired.com/2010/09/fractal-patterns-in-nature/\n\n## 🌐 Additional JavaScript Fractal Links\n* https://thefractal.zone/\n* https://github.com/delimitry/fractals-js\n* https://progur.com/2017/02/create-mandelbrot-fractal-javascript.html\n* https://medium.com/@yortuc/fractal-fun-with-javascript-2102d03ad22b\n* https://progur.com/2016/10/procedural-generation-create-fractal-trees-javascript.html\n* https://lautarolobo.xyz/blog/use-javascript-and-html5-to-code-a-fractal-tree/\n* https://www.lesscake.com/fractals-chaos-game\n* https://repl.it/talk/learn/Julia-Fractals-in-JavaScript/12806\n* http://rectangleworld.com/blog/archives/462\n* http://slicker.me/fractals/animate.htm\n\n## 📝 License\n\n[![CC0](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconradsollitt%2Fcss-houdini-fractals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconradsollitt%2Fcss-houdini-fractals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconradsollitt%2Fcss-houdini-fractals/lists"}