New JavaScript Library invites programmers to use canvas for creative programming

Source: Internet
Author: User

650) this.width=650; "Src=" http://evgetimg.oss-cn-hangzhou.aliyuncs.com/Content/files/2017/2/23/ 16a72d5ed3b34e4a8c1eba7f7cde9b63636234558828167421.jpeg "style=" border:0px none;vertical-align:middle;margin : 15px auto; "/>

To blur the boundaries between technology and art, the Sandpit library uses JavaScript and canvas 2D elements for creative programming.

With GitHub or NPM built into ECMAScript 6, Sandpit still uses an API that might be changed before the 1.0 release. "The goal of Sandpit is to standardize and streamline the process of creating encodings, using code to do beautiful things," the document says. "In either 2D or 3D, it is usually drawn to the canvas element. "Sandpit uses Dat.gui, a lightweight GUI that changes variables in JavaScript, to manage settings.

To start using Sandpit,charlie Gleason and Glen Maddern in the ES6 environment, it is recommended to use the Facebook incubator project Create-react-app to create react Javascrip applications. The Sandpit demo can also be used with Create-react-app. Sandpit manages input signals such as touch, tap and click, as well as multi-touch on mobile devices. Other features include specifying scope, type, and default values when setting up the API, and assistants that include math, color, and vector operations. Settings are stored in the query string, and developers can import their work in the canvas and use the copy and Paste feature when they do not touch any code.

Sandpit supports browsers such as Microsoft Internet Explorer 11 and edge. You can use Babel-polyfill when compiling ECMAScript 5 o'clock. Sandpit developers encourage community contributions and provide examples of usage.

First JavaScript framework dedicated to LOB application development click to download >>>

"Article source of HPE control, original not easy, reproduced please indicate the source"


New JavaScript Library invites programmers to use canvas for creative programming

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.