tweak

Tweak jeash

This page describes the options for controlling jeash through the HTML div container element, without modifying any code.

Width and Height

The general width and height of the canvas element is important for the performance of rendering in 2D, because each DisplayObject instance maintains a buffer of this size.

To modify the width and height of the main stage use stylesheets:

<div id="haxe:jeash" style="width:500px; height: 300px"></div>

FrameRate

It's possible to modify the speed of animation, so that the CPU is throttled, freeing resources for the Operating System.

To modify the framerate of the application use the data-framerate HTML extension :

<div id="haxe:jeash" data-framerate="40"></div>

version #10572, modified 2011-05-18 21:15:17 by Confidant