GithubHelp home page GithubHelp logo

syncopika / funsketch Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 13.97 MB

draw and animate pictures!

Home Page: https://syncopika.github.io/funSketch

HTML 12.24% JavaScript 87.06% CSS 0.71%
art fun sketch animation canvas react drawing image-processing editing image

funsketch's Introduction

funSketch

An application made with React that has simple drawing features, as well as some interesting filter and brush options.

but more importantly, you can also make some quick, simple animations!

try it here: https://syncopika.github.io/funSketch/

current look:
current look of funSketch

animation demo:
animation demo

notes:

You'll notice with the color wheel there are 2 white color options.
2 different white color options

The one to the right has an alpha value of 128 whereas the other has an alpha value of 255.
Because of the way I have things set up, the white with alpha as 128 can be used to create an opaque white color when the layers are merged to create a final frame.

Otherwise, any white color with 255 as the alpha value is treated as transparent (so those pixels are ignored when merging layers). By default, every canvas is filled with rgba(255,255,255,255).

installation:

You'll need node.js and npm. cd into this repo and run npm install to install all the dependencies. Then run npm run serve to serve the application (with hot reload!). To run the tests, run npm test.

For end-to-end testing I tried using WebdriverIO with ChromeDriver. Make sure that the chromedriver version in package.json matches the local version of Chrome on your computer.

Alternatively, you can run npm run dev to build a development bundle in the /dist directory and then node server.js.

acknowledgements:

thanks to William Malone's fantastic tutorial, which much of this work is based on.

thanks to Johan Nordberg's gif.js library, which I use to generate the output for an animation.

thanks to mr.doob's harmony project for some brush ideas.

and much thanks to the many authors of various blogs, StackOverflow posts and other sources of related information I referred to, which helped save me a ton of time :).

funsketch's People

Contributors

syncopika avatar

Stargazers

Kler avatar Joel Javillo  avatar  avatar

Watchers

James Cloos avatar  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.