Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akshay2211/drawbox
DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.
https://github.com/akshay2211/drawbox
android android-canvas android-library canvas composable compose drawing-app drawing-library drawing-on-canvas hacktoberfest jepackcompose kotlin kotlin-android kotlin-library signature-pad
Last synced: 8 days ago
JSON representation
DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.
- Host: GitHub
- URL: https://github.com/akshay2211/drawbox
- Owner: akshay2211
- License: apache-2.0
- Created: 2021-12-09T18:24:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-20T16:35:40.000Z (over 1 year ago)
- Last Synced: 2024-10-29T10:08:36.977Z (9 days ago)
- 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
- Language: Kotlin
- Homepage: https://ak1.io/DrawBox/
- Size: 1.3 MB
- Stars: 303
- Watchers: 6
- Forks: 41
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# DrawBox
[![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)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DrawBox-green.svg?style=flat-square)](https://android-arsenal.com/details/1/8292)
[![Kotlin Weekly](https://img.shields.io/badge/Kotlin%20Weekly-DrawBox-purple.svg?style=flat-square)](https://mailchi.mp/kotlinweekly/kotlin-weekly-294)
[![Maven Central](https://img.shields.io/maven-central/v/io.ak1/drawbox?style=flat-square)](https://search.maven.org/artifact/io.ak1/drawbox)
[![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)DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.
## Features
* Customisable stoke size and color
* Inbuilt Undo and Redo options
* Reset option
* Easy Implementations
* Export feature to store history localy
* Written on Jetpack-Compose## Demo
## Usage
```kotlin
val controller = rememberDrawController()
DrawBox(drawController = controller, modifier = Modifier.fillMaxSize().weight(1f, true))
```
With multiple methods in DrawController
```kotlin
* setStrokeColor(color: Color)
* setStrokeWidth(width: Float)
* unDo()
* reDo()
* reset()
* getDrawBoxBitmap() // gives the result bitmap from canvas
* importPath(path)
* exportPath()
```## Download
[![Download](https://img.shields.io/badge/Download-blue.svg?style=flat-square)](https://search.maven.org/artifact/io.ak1/drawbox) or grab via Gradle:
include in app level build.gradle
```groovy
repositories {
mavenCentral()
}
```
```groovy
implementation 'io.ak1:drawbox:1.0.3'
```
or Maven:
```xmlio.ak1
drawbox
1.0.3
pom```
or ivy:
```xml
```
## Thanks to
[RangVikalp](https://github.com/akshay2211/rang-vikalp) for the beautiful color picker used in DrawBox## License
Licensed under the Apache License, Version 2.0, [click here for the full license](/LICENSE).## Author & support
This project was created by [Akshay Sharma](https://akshay2211.github.io/).> If you appreciate my work, consider buying me a cup of :coffee: to keep me recharged :metal: by [PayPal](https://www.paypal.me/akshay2211)
> 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!