{"id":20750553,"url":"https://github.com/micycle1/processing-skia","last_synced_at":"2025-07-12T12:09:03.909Z","repository":{"id":133574768,"uuid":"314650307","full_name":"micycle1/processing-skia","owner":"micycle1","description":"Eases Skija (Skia for Java) interoperability with Processing","archived":false,"fork":false,"pushed_at":"2021-11-11T16:42:13.000Z","size":8266,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T12:57:33.742Z","etag":null,"topics":["processing","processing4","skia","skija"],"latest_commit_sha":null,"homepage":"","language":"Java","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/micycle1.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":"2020-11-20T19:27:36.000Z","updated_at":"2023-01-02T21:16:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a7fc30c-6dc5-48ef-89fc-9e8d0447f545","html_url":"https://github.com/micycle1/processing-skia","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/micycle1/processing-skia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2Fprocessing-skia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2Fprocessing-skia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2Fprocessing-skia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2Fprocessing-skia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micycle1","download_url":"https://codeload.github.com/micycle1/processing-skia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micycle1%2Fprocessing-skia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264987431,"owners_count":23693825,"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":["processing","processing4","skia","skija"],"created_at":"2024-11-17T08:27:51.703Z","updated_at":"2025-07-12T12:09:03.879Z","avatar_url":"https://github.com/micycle1.png","language":"Java","readme":"# processing-skia\n\n**Skia** is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms.\n\n**Skija** provides high-quality Java bindings for Skia.\n\n**processing-skia** does the backend work of setting Skija's render target to Processing, so you can easily use any Skija [bindings](https://github.com/JetBrains/skija/blob/master/docs/Getting%20Started.md) to draw into a Processing sketch.\n\n## Requirements\n* Java 11+ (Processing 4)\n* A Processing sketch using either the `P2D` or `P3D` renderer.\n\n## Download\nDownload a .jar of *processing-skia* from [releases](https://github.com/micycle1/processing-skia/releases/).\n\n## Example\n### Code\n\n```\nimport micycle.processingSkia.SkiaCanvas;\nimport org.jetbrains.skija.*;\n\nCanvas skiaCanvas;\n\n@Override\npublic void settings() {\n    size(800, 800, P2D);\n}\n\n@Override\npublic void setup() {\n    skiaCanvas = SkiaCanvas.getSkiaCanvas(this);\n}\n\n@Override\npublic void draw() {\n    background(255);\n\t\n    Paint fill = new Paint().setShader(Shader.makeLinearGradient(400, 300, 400, 500, new int[] {0xFFFFA500, 0xFF4CA387}));\n\t\n    skiaCanvas.drawCircle(400, 400, 200, fill);\n}\n```\n### Result\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"resources/result_example.png\" alt=\"Example\" width=\"400\"squares_examplesquares_example/\u003e\u003c/a\u003e\u003cbr\u003e\u003c/p\u003e\n\n## More examples\n\nA number of example Processing sketches are provided in [examples](https://github.com/micycle1/processing-skia/tree/main/examples).\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003eDash Stroke\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003eText on Path\u003c/td\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cb\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd valign=\"top\" width = 33%\u003e\u003cimg src=\"resources/dashStroke.gif\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width = 33%\u003e\u003cimg src=\"resources/textOnPath.gif\"\u003e\u003c/td\u003e\n    \u003ctd valign=\"top\" width = 33%\u003e\u003cimg src=\"resources/squares_example.gif\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Further Work\nFurther work would wrap the Skija library itself, creating Processing-like bindings around Skija's API (a `PGraphicsSkia`) leading to the possibility of a dedicated Skia-based renderer in Processing.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicycle1%2Fprocessing-skia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicycle1%2Fprocessing-skia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicycle1%2Fprocessing-skia/lists"}