(Redirected from Scratch License)

SandCastleIcon.png This article has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites.

The Source Code for Scratch is available under different open source licenses. It is usually used for:

  • Understanding how Scratch works
  • Building future versions of Scratch
  • Making Scratch modifications

Scratch 3.0

The Scratch 3.0 source code is in GitHub. It is spread across several repositories and written mostly in JavaScript.

Scratch 2.0

The Scratch 2.0 source code is now officially available on GitHub here.[1] It is written in ActionScript and now provides the necessary tools for users familiar with the language to create mods of Scratch 2.0. From the source code page, users can view the pull requests for Scratch 2.0 as well as analyze the current issues that need debugged.

Before the release of the source code on May 13, 2014, Scratch 2.0 could only be used in compiled form. Compiling takes code written in a human-friendly or high-level programming language and converts into code in a low-level language, which is more compact and can be interpreted faster. However, Scratch is and always will be open-source, and updates to the source code can be viewed on GitHub.

Scratch 1.4

Main article: Scratch 1.4 Source Code

The source code for Scratch 1.x is stored in two files, SqueakV2.sources and the changes file, the former containing the original source code for Squeak 2.0 and the latter containing everything written since then, including Scratch itself. The Scratch Team has published these separately from the ordinary version of Scratch, as explained below. (If the source code is absent, Squeak will automatically decompile methods, so Scratch can still be modified; however, comments are removed and temporary variable names are replaced with t1, t2, t3, etc. which can make the code difficult to understand.)

Licenses

"License" redirects here. For the license Scratch projects are published under, see Scratch Project License.

All Scratch 3.0 source code except for Scratch Blocks is licensed under the BSD 3-clause license. Scratch Blocks is licensed under the Apache License v2.0,[2] which is a fork of Google's Blockly, that is also under the Apache License.[3]

The free version of Scratch 2 is under the GNU GPLv2 or any later version[4]; it is complete except for the media library, help, and cloud variables.

For Scratch 1.4, there are two different versions of the source code, available under two different licenses and intended for different purposes. The first, available since Scratch was created, contains a non-branded image file with a generic sprite and no uploading. This is released under the Scratch Source Code License. Another version, added in March 2012, is licensed under the GNU General Public License, version 2.[5] It contains all of the media included with the regular Scratch distribution and was created to make it easier to put versions of Scratch on open source repositories, especially for Linux distributions.

See Also

External Links

References

  1. speakvisually. (13/08/14). "We've open sourced the Scratch 2.0 editor code!" topic:38754
  2. https://github.com/LLK/scratch-blocks/blob/develop/LICENSE
  3. https://github.com/google/blockly/blob/master/LICENSE
  4. "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version." https://github.com/scratchfoundation/scratch-flash/blob/develop/src/Scratch.as
  5. Lightnin. (03/30/12). "Scratch 1.4 Source code now available under the GPL v2[title]" ar-topic:93538
Cookies help us deliver our services. By using our services, you agree to our use of cookies.