<commit_before># pixi-accessibility

A plugin that adds accessibility to Pixi.js

**Note**: This modules *requires* v3.0.9 (or higher) of pixi.js.

![image]( http://www.goodboydigital.com/pixijs/accessibility/tab_pixi.jpg)

The Accessibility plugin adds the ability to tab and and have content read by screen readers. This is very important as it can possibly help people with disabilities access pixi content.

Much like interaction any DisplayObject can be made accessible. This manager will map the events as if the mouse was being used, minimizing the efferot required to implement.

Check it out in action here (try tabbing):

[DEMO](http://www.goodboydigital.com/pixijs/accessibility/accessibility.html)

## Usage

I have made this as easy as possible to use in the hope that all those awesome pixi sites and games can become usable by people without the ability to use the mouse or see content.


```js

// Create a sprite as usual..
var mySprite = PIXI.Sprite.fromImage('myImage.png');

// Make sprite interactive..
mySprite.interactive = true;

// Make it accessible..
mySprite.accessible = true;
// The description of the button for the screen reader
mySprite.accessibleTitle = 'Hello Button';

mySprite.click = function(){

  alert("Hello")<commit_msg>README update<commit_after>#update

Now tested in:
* IOS VoiceOver for IOS 9
* Android TalkBack
* Kindle VoiceView for FireHD 6

Check it out in action here on desktop with tabbing and mobile with screenreader enabled:

[DEMO](http://scottmcdonnell.github.io/pixi-accessibility/)


# pixi-accessibility

A plugin that adds accessibility to Pixi.js

**Note**: This modules *requires* v3.0.9 (or higher) of pixi.js.

![image]( http://www.goodboydigital.com/pixijs/accessibility/tab_pixi.jpg)

The Accessibility plugin adds the ability to tab and and have content read by screen readers. This is very important as it can possibly help people with disabilities access pixi content.

Much like interaction any DisplayObject can be made accessible. This manager will map the events as if the mouse was being used, minimizing the efferot required to implement.


## Usage

I have made this as easy as possible to use in the hope that all those awesome pixi sites and games can become usable by people without the ability to use the mouse or see content.


```js

// Create a sprite as usual..
var mySprite = PIXI.Sprite.fromImage('myImage.png');

// Make sprite interactive..
mySprite.interactive = true;

// Make it accessible..
mySprite.accessible = true;
// The description of the button for the screen reader
mySprite.accessibleTitle = 'Hello Button';

mySprite.click = function(){

  alert("Hello")
{'fraction_non_alphanumeric': 0.07822489657766077, 'fraction_numerical': 0.003008649868371568, 'mean_word_length': 4.330661322645291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '2155024', 'n_tokens_mistral': 765, 'n_tokens_neox': 730, 'n_words': 340}