Licenses

DPaint.js uses (parts of) the following packages:

StackBlur.js

MIT License - Copyright (c) 2010 Mario Klingemann
https://github.com/flozz/StackBlur/

Dithering techniques based on PhotoDemon

Simplified BSD license - Copyright 2002-2023 by Tanner Helland
https://github.com/tannerhelland/PhotoDemon/blob/main/Forms/Adjustments_BlackAndWhite.frm
https://tannerhelland.com/2012/12/28/dithering-eleven-algorithms-source-code.html

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Sharpen Algorithm

mikecao and jaredatdannyronsrescue
https://gist.github.com/mikecao/65d9fc92dc7197cb8a7c?permalink_comment_id=4314200#gistcomment-4314200

Image Scale Algorithm

MIT License - Copyright (c) 2017 Eugene Tiurin
https://github.com/ytiurin/downscale/blob/master/src/downsample.js

RotSprite Algorithm for WebGL

MIT License - Copyright (c) 2022 Abdelrahman Adnan Lahrech
https://github.com/adnanlah/rotsprite-webgl/tree/master

LZW Decoder Used for decoding GIF files

MIT License - Copyright (c) 2015 Matt Way
https://github.com/matt-way/gifuct-js/blob/master/src/lzw.js

FileSaver.js (Used as fallback for older browsers)

MIT License - Copyright © 2016 Eli Grey
https://github.com/eligrey/FileSaver.js

Additional Retro Platform palettes by Zeb Elwood