{"id":18008011,"url":"https://github.com/luizzak/swift-blend2d","last_synced_at":"2026-03-07T12:02:30.085Z","repository":{"id":46860861,"uuid":"181127461","full_name":"LuizZak/swift-blend2d","owner":"LuizZak","description":"Experimental Swift bindings for Blend2D","archived":false,"fork":false,"pushed_at":"2024-12-19T13:40:33.000Z","size":14220,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T12:02:55.331Z","etag":null,"topics":["2d-graphics","blend2d","rasterization"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuizZak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.blend2d.md","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":"2019-04-13T05:53:34.000Z","updated_at":"2024-12-31T13:50:24.000Z","dependencies_parsed_at":"2024-07-10T01:10:36.191Z","dependency_job_id":null,"html_url":"https://github.com/LuizZak/swift-blend2d","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuizZak%2Fswift-blend2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuizZak%2Fswift-blend2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuizZak%2Fswift-blend2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuizZak%2Fswift-blend2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuizZak","download_url":"https://codeload.github.com/LuizZak/swift-blend2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245654283,"owners_count":20650837,"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":["2d-graphics","blend2d","rasterization"],"created_at":"2024-10-30T01:16:22.001Z","updated_at":"2026-03-07T12:02:25.030Z","avatar_url":"https://github.com/LuizZak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftBlend2D\n\n| Platform | Build Status |\n|----------|--------|\n| macOS    | [![Build Status](https://dev.azure.com/luiz-fs/swift-blend2d/_apis/build/status/LuizZak.swift-blend2d?branchName=master\u0026jobName=macOS)](https://dev.azure.com/luiz-fs/swift-blend2d/_build/latest?definitionId=5\u0026branchName=master) |\n| Linux    | [![Build Status](https://dev.azure.com/luiz-fs/swift-blend2d/_apis/build/status/LuizZak.swift-blend2d?branchName=master\u0026jobName=Linux)](https://dev.azure.com/luiz-fs/swift-blend2d/_build/latest?definitionId=5\u0026branchName=master) |\n| Windows  | [![Build Status](https://dev.azure.com/luiz-fs/swift-blend2d/_apis/build/status/LuizZak.swift-blend2d?branchName=master\u0026jobName=Windows)](https://dev.azure.com/luiz-fs/swift-blend2d/_build/latest?definitionId=5\u0026branchName=master) |\n\nWork-in-progress Swift bindings for [Blend2D](https://github.com/blend2d/blend2d). This project makes use of the original source code of Blend2D and is in no way associated or supported by Blend2D.\n\nFor a brief report of what APIs are available in Swift, please check the [status page](/Status.md).\n\n### Requirements\n\nXcode 13.0 / Swift 5.4.3\n\n#### Sample usage\n\nTaken from `sample1` from the [samples library](Sources/SwiftBlend2DSample/Samples.swift).\n\n```swift\nlet img = BLImage(width: 480, height: 480, format: .prgb32)\n\n// Attach a rendering context into `img`.\nlet ctx = BLContext(image: img)!\n\n// Clear the image.\nctx.compOp = .sourceCopy\nctx.fillAll()\n\n// Fill some path.\nlet path = BLPath()\n\npath.moveTo(x: 26, y: 31)\npath.cubicTo(x1: 642, y1: 132, x2: 587, y2: -136, x3: 25, y3: 464)\npath.cubicTo(x1: 882, y1: 404, x2: 144, y2: 267, x3: 27, y3: 31)\n\nctx.compOp = .sourceOver\nctx.setFillStyleRgba32(0xFFFFFFFF)\nctx.fillPath(path)\n\n// Detach the rendering context from `img`.\nctx.end()\n\n// Let's use some built-in codecs provided by Blend2D.\nlet codec = BLImageCodec(builtInCodec: .bmp)\n\ntry img.writeToFile(\"bl-getting-started-1.bmp\", codec: codec)\n```\n\nThis should create an image in the current working directory like so:\n\n![Sample 1](bl-getting-started-1.png)\n\nThere are more examples that reproduce each [sample from Blend2D's homepage](https://blend2d.com/doc/getting-started.html) within that file.\n\n#### License\n\nThe source code for SwiftBlend2D is distributed under the [MIT license](https://tldrlegal.com/license/mit-license).\n\nThe incorporated source code from [Blend2D](https://blend2d.com) is licensed under the [zlib license](https://tldrlegal.com/license/zlib-libpng-license-(zlib)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizzak%2Fswift-blend2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizzak%2Fswift-blend2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizzak%2Fswift-blend2d/lists"}