{"id":16683851,"url":"https://github.com/meniny/davinci","last_synced_at":"2025-04-09T23:25:22.538Z","repository":{"id":56908179,"uuid":"118231361","full_name":"Meniny/DaVinci","owner":"Meniny","description":"🖌 More modern CoreGraphics wrapper for iOS/macOS","archived":false,"fork":false,"pushed_at":"2018-05-19T12:34:03.000Z","size":633,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T01:14:26.731Z","etag":null,"topics":["cgcontext","cgpath","coregraphics","ios"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Meniny.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-20T10:09:13.000Z","updated_at":"2021-06-01T05:45:59.000Z","dependencies_parsed_at":"2022-08-21T03:50:22.970Z","dependency_job_id":null,"html_url":"https://github.com/Meniny/DaVinci","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDaVinci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDaVinci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDaVinci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDaVinci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meniny","download_url":"https://codeload.github.com/Meniny/DaVinci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127611,"owners_count":21052257,"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":["cgcontext","cgpath","coregraphics","ios"],"created_at":"2024-10-12T14:26:43.753Z","updated_at":"2025-04-09T23:25:22.514Z","avatar_url":"https://github.com/Meniny.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":":name: DaVinci\n:author: Elias Abel\n:author_esc: Elias%20Abel\n:mail: admin@meniny.cn\n:desc: a more modern CoreGraphics wrapper for iOS/macOS.\n:icon: {name}.png\n:version: 2.0.0\n:na: N/A\n:ios: 10.0\n:macos: 10.10\n:watchos: {na}\n:tvos: {na}\n:linux: {na}\n:xcode: 9.3\n:swift: 4.1\n:license: MIT\n:sep: %20%7C%20\n:platform: iOS{sep}macOS\n= Meet `{name}`\n{author} \u003c{mail}\u003e\nv{version}, 2018-05-08\n\n[subs=\"attributes\"]\n++++\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./Assets/{icon}\" alt=\"{name}\" width=\"200px\"\u003e\n  \u003cbr/\u003e\u003cbr/\u003e\n  \u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/author-{author_esc}-blue.svg\"\u003e\n  \u003cimg alt=\"EMail\" src=\"https://img.shields.io/badge/mail-{mail}-orange.svg\"\u003e\n  \u003cimg alt=\"MIT\" src=\"https://img.shields.io/badge/license-{license}-blue.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-{version}-brightgreen.svg\"\u003e\n  \u003cimg alt=\"PlatformType\" src=\"https://img.shields.io/badge/platform-{platform}-lightgrey.svg\"\u003e\n  \u003cimg alt=\"Swift\" src=\"https://img.shields.io/badge/swift-{swift}%2B-orange.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Build Passing\" src=\"https://img.shields.io/badge/build-passing-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Cocoapods\" src=\"https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Carthage\" src=\"https://img.shields.io/badge/carthage-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"SPM\" src=\"https://img.shields.io/badge/spm-compatible-brightgreen.svg\"\u003e\n\u003c/p\u003e\n++++\n\n:toc:\n\n== 🏵 Introduction\n\n**{name}** is {desc}.\n\n== 📋 Requirements\n\n[%header]\n|===\n2+^m|Type 1+^m|Requirement\n\n1.5+^.^|Platform ^|iOS ^|{ios}+\n^|macOS ^|{macos}\n^|tvOS ^|{tvos}\n^|watchOS ^|{watchos}\n^|Linux ^|{linux}\n\n^|IDE ^|Xcode ^| {xcode}+\n^|Language ^|Swift ^| {swift}+\n|===\n\n== 📲 Installation\n\n=== CocoaPods\n\n`{name}` is available on link:https://cocoapods.org[CocoaPods].\n\n[source, ruby, subs=\"verbatim,attributes\"]\n----\nuse_frameworks!\npod '{name}'\n----\n\n=== Manually\n\nCopy all files in the `{name}` directory into your project.\n\n== 🛌 Dependency\n\n{na}\n\n== ❤️ Contribution\n\nYou are welcome to fork and submit pull requests.\n\n== 🔖 License\n\n`{name}` is open-sourced software, licensed under the link:./LICENSE.md[`{license}`] license.\n\n== 🔫 Usage\n\n.Sample.swift\n[source, swift, subs=\"verbatim,attributes\"]\n----\nimport {name}\n\npublic func draw(in context: CGContext, rect: CGRect) {\n    let fillColorOne: CGColor = #colorLiteral(red: 0.05, green:0.49, blue:0.98, alpha:0.8).cgColor\n    func cal(_ ref: CGFloat, _ acu: CGFloat) -\u003e CGFloat {\n        let reference: CGFloat = 66\n        return (ref / reference) * acu\n    }\n\n    let arrowPartTop = DaVinci.Path.init(point: CGPoint.init(x: cal(11, rect.width), y: rect.midY))\n        .addLine(to: CGPoint.init(x: cal(44.5, rect.width), y: 0))\n        .addLine(to: CGPoint.init(x: cal(54, rect.width), y: cal(9.5, rect.height)))\n        .addLine(to: CGPoint.init(x: cal(30, rect.width), y: rect.midY))\n        .close()\n    let arrowPartBottom = arrowPartTop.flip(.vertically, by: rect.midY)\n    let arrow = arrowPartTop + arrowPartBottom\n\n    context.fill(path: arrow, color: fillColorOne)\n}\n----\n\nimage::./Assets/Sample.png[Sample]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fdavinci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeniny%2Fdavinci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fdavinci/lists"}