Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/authman2/canvas
An iOS library for painting with Raster and Scalable Vector Graphics.
https://github.com/authman2/canvas
Last synced: about 2 months ago
JSON representation
An iOS library for painting with Raster and Scalable Vector Graphics.
- Host: GitHub
- URL: https://github.com/authman2/canvas
- Owner: Authman2
- License: mit
- Created: 2018-01-09T16:51:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T18:26:36.000Z (about 6 years ago)
- Last Synced: 2024-04-14T12:28:54.397Z (9 months ago)
- Language: Swift
- Homepage:
- Size: 417 KB
- Stars: 36
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Canvas
[![Version](https://img.shields.io/cocoapods/v/Canvas.svg?style=flat)](http://cocoapods.org/pods/Canvas+)
[![License](https://img.shields.io/cocoapods/l/Canvas.svg?style=flat)](http://cocoapods.org/pods/Canvas+)
[![Platform](https://img.shields.io/cocoapods/p/Canvas.svg?style=flat)](http://cocoapods.org/pods/Canvas+)Canvas is an iOS library that creates an area on the screen where the user can draw lines and shapes, style drawings by adding different types of brushes, and work with multiple layers. It provides an easy way to add on-screen drawing to any iOS app. Canvas uses SVG and Raster graphics for drawing.
## Features
- **Canvas**: A UIView with a clear background where users can draw.
- **CanvasTools**: Draw using different shapes (pen, eraser, line, rectangle, ellipse, and eyedropper)
- **CanvasLayers**: Create multiple SVG or Raster layers that can be moved, swapped, hidden, locked, and more.
- **Brushes**: Create and use different brushes to style drawings on the canvas.
- **CanvasEvents**: Keep track of when the user starts drawing, is drawing, and finishes drawing by using the CanvasEvents protocol.
- **Export**: Export your canvas drawing as a UIImage.
- **Undo/Redo/Clear**: Support for undo, redo, and clearing of drawings. You can also define for yourself what actions in your app should count toward to the undo/redo stack by using the addCustomUndoRedo function.
- **Selection Tool**: Select different drawing strokes and move them around the canvas. Drawings can also be copied and pasted onto different canvas layers.## Installation
Canvas is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'Canvas+'
```## Author
- Year: 2018
- Languages/Tools: Swift
- Programmer: Adeola Uthman## License
Canvas is available under the MIT license. See the LICENSE file for more info.