<commit_before>===========
sprite.js
===========

The sprite.js framework lets you create animations and games
using sprites in an efficient way. The goal is to have common
framework for Desktop and mobile browsers.

sprite.js has been tested on Chromium, Firefox, Android emulator and Opera.

For an example of the what the framework offers, have a look at test_sprites.html.

You can see some demos online here:

http://batiste.dosimple.ch/sprite.js/test_particules.html

http://batiste.dosimple.ch/sprite.js/test_game.html

http://batiste.dosimple.ch/sprite.js/test_sprites.html

http://batiste.dosimple.ch/sprite.js/test_input.html

Example usage
=================

Example of a basic use::

    <script src="sprite.js"></script>

    <script>
    // create the Sprite object;
    var sp = new sjs.Sprite('character.png');<commit_msg>Document the size of the viewport.<commit_after>===========
sprite.js
===========

The sprite.js framework lets you create animations and games
using sprites in an efficient way. The goal is to have common
framework for Desktop and mobile browsers.

sprite.js has been tested on Chromium, Firefox, Android emulator and Opera.

For an example of the what the framework offers, have a look at test_sprites.html.

You can see some demos online here:

http://batiste.dosimple.ch/sprite.js/test_particules.html

http://batiste.dosimple.ch/sprite.js/test_game.html

http://batiste.dosimple.ch/sprite.js/test_sprites.html

http://batiste.dosimple.ch/sprite.js/test_input.html

Example usage
=================

Example of a basic use::

    <script src="sprite.js"></script>

    <script>
    // set the viewport size (default 480x320)
    sjs.w = 640;
    sjs.h = 480;

    // create the Sprite object;
    var sp = new sjs.Sprite('character.png');
{'fraction_non_alphanumeric': 0.134345137717819, 'fraction_numerical': 0.006745362563237774, 'mean_word_length': 3.9859943977591037, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3562810', 'n_tokens_mistral': 599, 'n_tokens_neox': 548, 'n_words': 180}