GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MarkYav/DrawBox: The first multiplatform drawing library!

BranchesTags
Open more actions menu

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
buildSrc
buildSrc
 
 
drawbox
drawbox
 
 
gradle
gradle
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

DrawBox

DrawBox is a multipurpose tool to draw anything on canvas, written completely on Compose Multiplatform. This is the first multiplatform drawing library!

Features

  • Cross-platform!
  • Customisable stoke size, color and opacity
  • Inbuilt Undo and Redo options
  • Reset option
  • Background with color/image
  • Custom opacity of drawing/background
  • Different subscriptions (dynamic update/after each drawing)
  • Easy Implementations

Next releases:

  • Erase tool
  • Import/export
  • Background content scale

Planned:

  • Different image rations
  • Filling tool
  • Optimizing rendering (convert drawn PATHes)
  • Migrate from Compose dependencies in controller folder

Demo

DrawBox-desktop-demo.mp4

Usage

val controller = remember { DrawController() }
DrawBox(drawController = controller, modifier = Modifier.fillMaxSize())

Download

Using Gradle Kotlin DSL:

implementation("io.github.markyav.drawbox:drawbox:1.3.1")

Examples

You can find example of the library basic usage in the sample package:

  • Android
  • Desktop

Also, I will share a link here to another independent project where you can find more sophisticated example!

Author

This project was created by Mark Yavorskyi

History

I love my work. The idea of creating this open-source project appeared because I needed a multiplatform (Android + desktop) library for drawing. I fround several popular libs for Android but there was ZERO for using in KMM/KMP. I still have some aspects to improve and I will be happy if you share your feedback or propose an idea!

Hope you enjoy it!
Mark

License

Licensed under the Apache License, Version 2.0, click here for the full license.

About

The first multiplatform drawing library!

Topics

androidcomposedesktopmultiplatformmultiplatform-composemultiplatform-kotlin-libraryui

Resources

Readme
Apache-2.0 license
Activity

Stars

27 stars

Watchers

3 watching

Forks

4 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.