{"id":15061014,"url":"https://github.com/ocaml/graphics","last_synced_at":"2025-10-07T14:22:48.323Z","repository":{"id":48237353,"uuid":"175175923","full_name":"ocaml/graphics","owner":"ocaml","description":"The Graphics library from OCaml, in a standalone repository","archived":false,"fork":false,"pushed_at":"2025-02-28T11:35:21.000Z","size":445,"stargazers_count":70,"open_issues_count":12,"forks_count":32,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-25T18:06:08.519Z","etag":null,"topics":[],"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/ocaml.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2019-03-12T09:19:29.000Z","updated_at":"2025-05-11T19:24:04.000Z","dependencies_parsed_at":"2025-01-16T10:51:48.279Z","dependency_job_id":"84ec31ac-9107-420f-bbe6-3fc7e59594bc","html_url":"https://github.com/ocaml/graphics","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ocaml/graphics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml%2Fgraphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml%2Fgraphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml%2Fgraphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml%2Fgraphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocaml","download_url":"https://codeload.github.com/ocaml/graphics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml%2Fgraphics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278788156,"owners_count":26045907,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-09-24T23:08:08.248Z","updated_at":"2025-10-07T14:22:48.316Z","avatar_url":"https://github.com/ocaml.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Graphics\n========\n\nThe graphics library provides a set of portable drawing\nprimitives. Drawing takes place in a separate window that is created\nwhen Graphics.open_graph is called. It used to be distributed with\nOCaml up to OCaml 4.08.\n\n![Screenshot](libgraph.png)\n\nDocumentation\n-------------\n\nThe API is documented \n[here](https://ocaml.org/p/graphics/latest/doc/Graphics/index.html)\nand as comments in the source file `src/graphics.mli`.\n\nOn Linux, macOS, and other Unix systems\n---------------------------------------\n\nThe Graphics library uses the X11 windows system.\nmacOS users need to install [XQuartz](https://www.xquartz.org/).\n\nHere are the graphics mode specifications supported by\n`Graphics.open_graph` on the X11 implementation of this library: the\nargument to `Graphics.open_graph` has the format `\"display-name\ngeometry\"`, where display-name is the name of the X-windows display to\nconnect to, and geometry is a standard X-windows geometry\nspecification. The two components are separated by a space. Either can\nbe omitted, or both. Examples:\n\n- `Graphics.open_graph \"foo:0\"`: connects to the display foo:0 and\n  creates a window with the default geometry\n- `Graphics.open_graph \"foo:0 300x100+50-0\"` connects to the display\n  foo:0 and creates a window 300 pixels wide by 100 pixels tall, at\n  location (50,0)\n- `Graphics.open_graph \" 300x100+50-0\"` connects to the default\n  display and creates a window 300 pixels wide by 100 pixels tall, at\n  location (50,0)\n- `Graphics.open_graph \"\"` connects to the default display and creates\n  a window with the default geometry.\n\nOn Windows\n----------\n\nOn Windows, the Graphics library uses the native Win32 API.\n\nExamples\n--------\n\nThe `examples/` directory contains a few examples. You can run them\nwith:\n\n- `dune exec examples/sorts.exe`\n- `dune exec examples/graph_example.exe`\n- `dune exec examples/graph_test.exe`\n- `dune exec examples/fonts.exe`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focaml%2Fgraphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focaml%2Fgraphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focaml%2Fgraphics/lists"}