Skip to content
CookieShade edited this page Jul 29, 2016 · 13 revisions

BETA.js docs

Please note, these documentation pages are not finished! Changes can and will be made, and shouldn't be relied on completely yet! Actually, that applies to the entire library, so watch out. If you encounter any issues about either the library or documentation, feel free to open a GitHub Issue.

Requirements

A relatively modern browser, although no cutting-edge features are used.
Tested to work on Chrome 51 and Firefox 47.

Should also work on:

  • Chrome 24+
  • Firefox 23+
  • Internet Explorer 10+
  • Opera 15+
  • Safari 6.1+

Usage

  • Download the library, or have it hosted on the internet

  • Include the library by adding this line to your HTML file:

<script src="path/to/BETA.js"></script>
  • The BETA namespace is now defined and ready to be used!

The library is already hosted on sudonet.net, which should be a good enough host for any reasonable use case.
https://sudonet.net/beta/latest/beta.js hosts the latest library release, continually updating with each new release.
https://sudonet.net/beta/[version]/beta.js hosts a specific version of the library, like v1.0.

It is not recommended to link directly to the GitHub repository, as it may change at any time, breaking your code. It is possible, however, to link to a specific version of the library on GitHub by following this GitHub Help article.

Credits

  • Mikael Tylmad and Pontus Walck for creating advanced.js, the primary inspiration for this library

  • Joar Classon for hosting the library on sudonet.net

  • Alvy Ray Smith for conversions from the HSV and HWB color formats to normal RGB