Git Product home page Git Product logo

canvas's Introduction

  Canvas

Version License Platform

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. To install it, simply add the following line to your Podfile:

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.

canvas's People

Contributors

authman2 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.