Skip to content

AlekPet/brushlib.js

 
 

Repository files navigation

MyPaint brushlib in Javascript

Ported from brushlib - The MyPaint Brush Library Copyright (C) 2007-2011 Martin Renold [email protected]

Author: Yap Cheah Shen [email protected]

Online demo: http://www.ksana.tw/mypaint/

Wacom Browser Plugin can be download from http://www.wacom.com/CustomerCare/Plugin.aspx

Live demo:

https://alekpet.github.io/brushlib.js/

  • Rewrite code for ES6 and support pen.
  • Write module brushConvert on Nodejs for convert old and new version myb to the support brushlib javascript version and auto add load list brush to select brush element in HTML, use fetch to generated brushConvert json file incontain brushes directories with brush names.
  • Add support brush image if exists in the directory.
  • Add set color in input type color html tag
  • Add set brush size

brushConvert support two actions:

  1. Convert old and new myb
  2. Create json contains all brushes and direcoryies

Links

Library : https://github.com/mypaint/libmypaint

Brush library: https://github.com/mypaint/mypaint-brushes

Convert information:

All avaiables convertered brushes written indise in the file brushes_data.json

Use brushConverter.py (python)

run_converter_python.cmd

Convert brushes (python)
python brushConverter.py convert
Generate list brushes (python)
python brushConverter.py brushes

Use brushConverter.js (nodejs)

Convert brushes (nodejs)
npm run convert
Generate list brushes (nodejs)
npm run brushes

Read more in file txt inside folder packs_brushes

About

MyPaint brushlib in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.3%
  • Pascal 31.3%
  • Python 9.2%
  • HTML 3.7%
  • Other 0.5%