Education/Projects/ProcessingForTheWeb/cursor: Difference between revisions
Line 10: | Line 10: | ||
cursor(''MODE'') - this function sets the cursor to a predefined ''MODE'' defined by the function's parameter. | cursor(''MODE'') - this function sets the cursor to a predefined ''MODE'' defined by the function's parameter. | ||
< | <span> | ||
<ul> | <ul> | ||
<li>''MODE'': either ARROW, CROSS, HAND, MOVE, TEXT, WAIT</li> | <li>''MODE'': either ARROW, CROSS, HAND, MOVE, TEXT, WAIT</li> | ||
</ul> | </ul> | ||
</ | </span> | ||
cursor(''src'',''width'',''height'') - this function sets the cursor to an image . It is recommended to make the size of the image is 16x16 or 32x32 pixels. The values for parameters ''width'' and ''height'' must be less than the dimensions of the image. otherwise, it will not load. | |||
<span> | |||
<ul> | |||
<li>''src'': the path to the image</li> | |||
<li>''width'': the width hotspot of the cursor</li> | |||
<li>''height'': the height hotspot of the cursor</li> | |||
</ul> | |||
</span> | |||
=== Bugs === | === Bugs === |
Revision as of 02:42, 20 October 2009
Summary
This page lists tasks to be done as part of the Processing For The Web project, in order to fully implement all of Processing in processing.js. The work is being led by David Humphrey and Al MacDonald, and done by students at Seneca College. You are welcome to join this work.
Examples
Functions
cursor() - this function sets the cursor to a predefined browser default. It will also turn on the cursor if it is already hidden.
cursor(MODE) - this function sets the cursor to a predefined MODE defined by the function's parameter.
- MODE: either ARROW, CROSS, HAND, MOVE, TEXT, WAIT
cursor(src,width,height) - this function sets the cursor to an image . It is recommended to make the size of the image is 16x16 or 32x32 pixels. The values for parameters width and height must be less than the dimensions of the image. otherwise, it will not load.
- src: the path to the image
- width: the width hotspot of the cursor
- height: the height hotspot of the cursor
Bugs
Tests
- Test 1 -This tests the cursor() function.
- Test 2 -This tests the cursor(MODE) function.
- Test 3 -This tests the cursor(src,width,height)
OS(version) | Browser(version) | test 1 | test 2 | test 3 |
---|---|---|---|---|
Vista | Firefox(3.5.3) | Passed | Passed | Passed |