{"id":15289256,"url":"https://github.com/uriid1/cairo-luajit-ffi","last_synced_at":"2026-01-03T07:15:46.116Z","repository":{"id":254886861,"uuid":"847856316","full_name":"uriid1/cairo-luajit-ffi","owner":"uriid1","description":"FFI bindings to Cairo graphics ","archived":false,"fork":false,"pushed_at":"2024-09-02T17:03:20.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T12:42:15.312Z","etag":null,"topics":["cairo","cairographics","lua","luajit","luajit-ffi","luajit-ffi-bindings"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/uriid1.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":"2024-08-26T17:16:14.000Z","updated_at":"2024-09-02T17:03:24.000Z","dependencies_parsed_at":"2024-10-14T20:01:30.791Z","dependency_job_id":"0ccb95ed-5c89-491a-8899-2a83d6a39d21","html_url":"https://github.com/uriid1/cairo-luajit-ffi","commit_stats":null,"previous_names":["uriid1/cairo-luajit-ffi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uriid1/cairo-luajit-ffi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriid1%2Fcairo-luajit-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriid1%2Fcairo-luajit-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriid1%2Fcairo-luajit-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriid1%2Fcairo-luajit-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uriid1","download_url":"https://codeload.github.com/uriid1/cairo-luajit-ffi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriid1%2Fcairo-luajit-ffi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267007602,"owners_count":24020261,"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-07-25T02:00:09.625Z","response_time":70,"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":["cairo","cairographics","lua","luajit","luajit-ffi","luajit-ffi-bindings"],"created_at":"2024-09-30T16:00:06.090Z","updated_at":"2026-01-03T07:15:46.087Z","avatar_url":"https://github.com/uriid1.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot](https://github.com/uriid1/cairo-luajit-ffi/blob/main/screenshot.png)\n[Russian](README_RU.md) | English\u003c/br\u003e\n\n## Cairo LuaJit FFI\nFFI bindings to Cairo graphics\n\n## Installation\n## LuaRocks\n```bash\nsudo luarocks --lua-version 5.1 install cairo-luajit-ffi-0.0-1.rockspec\n```\n\n## Dependencies\nFor Debian or Ubuntu\n```bash\nsudo apt-get install libcairo2-dev\n```\n\nFor Fedora\n```bash\nsudo yum install cairo-devel\n```\n\nFor openSUSE\n```bash\nzypper install cairo-devel\n```\n\n# Documentation\nhttps://www.cairographics.org/manual/\nMethods have undergone minimal changes, but it's better to refer to cairo-ffi.lua, the examples, and test/all_test.lua.\n\n# Minimal Example\n```lua\nlocal cairo = require('cairo-luajit-ffi')\n\nlocal WIDTH = 512\nlocal HEIGHT = 512\n\nlocal surface = cairo.image_surface_create(cairo.lib.CAIRO_FORMAT_ARGB32, WIDTH, HEIGHT)\nlocal cr = cairo.create(surface)\n\ncairo.set_source_rgb(cr, 1, 1, 1)\ncairo.paint(cr)\n\n-- Fill circle\ncairo.set_source_rgb(cr, 0, 0.7, 0.7)\ncairo.arc(cr, WIDTH/2, HEIGHT/2, 128, 0, 2 * math.pi)\ncairo.fill(cr)\n\ncairo.surface_write_to_png(surface, 'circle-test.png')\ncairo.destroy(cr)\ncairo.surface_destroy(surface)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furiid1%2Fcairo-luajit-ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furiid1%2Fcairo-luajit-ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furiid1%2Fcairo-luajit-ffi/lists"}