{"id":15629687,"url":"https://github.com/akshay2211/drawbox","last_synced_at":"2025-04-06T03:10:37.514Z","repository":{"id":38299914,"uuid":"436719814","full_name":"akshay2211/DrawBox","owner":"akshay2211","description":"DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.","archived":false,"fork":false,"pushed_at":"2023-05-20T16:35:40.000Z","size":1364,"stargazers_count":303,"open_issues_count":8,"forks_count":41,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T10:08:36.977Z","etag":null,"topics":["android","android-canvas","android-library","canvas","composable","compose","drawing-app","drawing-library","drawing-on-canvas","hacktoberfest","jepackcompose","kotlin","kotlin-android","kotlin-library","signature-pad"],"latest_commit_sha":null,"homepage":"https://ak1.io/DrawBox/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akshay2211.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-09T18:24:24.000Z","updated_at":"2024-10-14T07:32:27.000Z","dependencies_parsed_at":"2023-02-09T02:46:27.819Z","dependency_job_id":"a8a2f75c-ebde-4b63-82a6-05925f72153c","html_url":"https://github.com/akshay2211/DrawBox","commit_stats":{"total_commits":85,"total_committers":3,"mean_commits":"28.333333333333332","dds":0.03529411764705881,"last_synced_commit":"4a52321f2f3681d674677c4283d2eff719d02de1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshay2211%2FDrawBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshay2211%2FDrawBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshay2211%2FDrawBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshay2211%2FDrawBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshay2211","download_url":"https://codeload.github.com/akshay2211/DrawBox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"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":["android","android-canvas","android-library","canvas","composable","compose","drawing-app","drawing-library","drawing-on-canvas","hacktoberfest","jepackcompose","kotlin","kotlin-android","kotlin-library","signature-pad"],"created_at":"2024-10-03T10:28:10.270Z","updated_at":"2025-04-06T03:10:37.496Z","avatar_url":"https://github.com/akshay2211.png","language":"Kotlin","funding_links":["https://www.paypal.me/akshay2211"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"media/banner.gif\"/\u003e\n\n# DrawBox\n\n[![Android Weekly](https://img.shields.io/badge/Featured%20in%20androidweekly.net-Issue%20%23502-blue.svg?style=flat-square)](https://androidweekly.net/issues/issue-502)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DrawBox-green.svg?style=flat-square)](https://android-arsenal.com/details/1/8292)\n[![Kotlin Weekly](https://img.shields.io/badge/Kotlin%20Weekly-DrawBox-purple.svg?style=flat-square)](https://mailchi.mp/kotlinweekly/kotlin-weekly-294)\n[![Maven Central](https://img.shields.io/maven-central/v/io.ak1/drawbox?style=flat-square)](https://search.maven.org/artifact/io.ak1/drawbox)\n[![Google Dev Library](https://img.shields.io/badge/Google%20Dev%20Library-DrawBox-brightgreen.svg?style=flat-square)](https://devlibrary.withgoogle.com/products/android/repos/akshay2211-DrawBox)\n\nDrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.\n\n## Features\n* Customisable stoke size and color\n* Inbuilt Undo and Redo options\n* Reset option\n* Easy Implementations\n* Export feature to store history localy\n* Written on Jetpack-Compose\n\n## Demo\n\u003cimg src=\"media/media.gif\"/\u003e\n\n## Usage\n ```kotlin\n val controller = rememberDrawController()\n \n DrawBox(drawController = controller, modifier = Modifier.fillMaxSize().weight(1f, true))\n ```\nWith multiple methods in DrawController\n```kotlin\n* setStrokeColor(color: Color)\n* setStrokeWidth(width: Float)\n* unDo()\n* reDo()\n* reset()\n* getDrawBoxBitmap()    // gives the result bitmap from canvas\n* importPath(path)\n* exportPath()\n```\n\n## Download\n[![Download](https://img.shields.io/badge/Download-blue.svg?style=flat-square)](https://search.maven.org/artifact/io.ak1/drawbox) or grab via Gradle:\n \ninclude in app level build.gradle\n ```groovy\n repositories {\n    mavenCentral()\n }\n ```\n```groovy\n implementation  'io.ak1:drawbox:1.0.3'\n```\nor Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.ak1\u003c/groupId\u003e\n  \u003cartifactId\u003edrawbox\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.3\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\nor ivy:\n```xml\n\u003cdependency org='io.ak1' name='drawbox' rev='1.0.3'\u003e\n  \u003cartifact name='drawbox' ext='pom' \u003e\u003c/artifact\u003e\n\u003c/dependency\u003e\n```\n\n## Thanks to\n[RangVikalp](https://github.com/akshay2211/rang-vikalp) for the beautiful color picker used in DrawBox\n\n## License\nLicensed under the Apache License, Version 2.0, [click here for the full license](/LICENSE).\n\n## Author \u0026 support\nThis project was created by [Akshay Sharma](https://akshay2211.github.io/).\n\n\u003e If you appreciate my work, consider buying me a cup of :coffee: to keep me recharged :metal: by [PayPal](https://www.paypal.me/akshay2211)\n\n\u003e I love using my work and I'm available for contract work. Freelancing helps to maintain and keep [my open source projects](https://github.com/akshay2211/) up to date!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshay2211%2Fdrawbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshay2211%2Fdrawbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshay2211%2Fdrawbox/lists"}