API
The following is a list of all Perlenspiel API event and function calls.
Click on a category name to view all documentation for that category.
Click on a function name to view its specific documentation.
- PS.init ( system, options )
- PS.touch ( x, y, data, options )
- PS.release ( x, y, data, options )
- PS.enter ( x, y, data, options )
- PS.exit ( x, y, data, options )
- PS.exitGrid ( options )
- PS.keyDown ( key, shift, ctrl, options )
- PS.keyUp ( key, shift, ctrl, options )
- PS.input ( device, options )
- PS.shutdown ( options )
- PS.gridSize ( width, height )
- PS.gridColor ( color )
- PS.gridFade ( rate, options )
- PS.gridShadow ( show, color )
- PS.gridPlane ( plane )
- PS.gridRefresh ()
Bead commands
- PS.color ( x, y, color )
- PS.alpha ( x, y, alpha )
- PS.fade ( x, y, rate, options )
- PS.scale ( x, y, scale )
- PS.radius ( x, y, radius )
- PS.minimum ( x, y, minimum )
- PS.bgColor ( x, y, color )
- PS.bgAlpha ( x, y, alpha )
- PS.data ( x, y, data )
- PS.exec ( x, y, exec )
- PS.visible ( x, y, show )
- PS.active ( x, y, active )
Border commands
- PS.border ( x, y, width )
- PS.borderColor ( x, y, color )
- PS.borderAlpha ( x, y, alpha )
- PS.borderFade ( x, y, rate, options )
Glyph commands
- PS.glyph ( x, y, glyph )
- PS.glyphColor ( x, y, color )
- PS.glyphAlpha ( x, y, alpha )
- PS.glyphScale ( x, y, scale )
- PS.glyphFade ( x, y, rate, options )
- PS.audioLoad ( filename, options )
- PS.audioPlay ( filename, options )
- PS.audioPlayChannel ( channel, options )
- PS.audioFade ( channel, from, to, duration, onEnd )
- PS.audioPause ( channel )
- PS.audioStop ( channel )
- PS.piano ( note, long )
- PS.harpsichord ( note, long )
- PS.xylophone ( note )
- Audio Library
- PS.statusText ( str )
- PS.statusColor ( color )
- PS.statusFade ( rate, options )
- PS.statusInput ( text, exec )
- PS.imageLoad ( filename, exec, format )
- PS.imageBlit ( image, x, y, region )
- PS.imageCapture ( format, region )
- PS.imageDump ( image, format, length, region )
- PS.line ( x1, y1, x2, y2 )
- PS.pathMap ( image )
- PS.pathFind ( pathmap, x1, y1, x2, y2, options )
- PS.pathData ( pathmap, left, top, width, height, data )
- PS.pathDelete ( pathmap )
- PS.spriteSolid ( width, height )
- PS.spriteSolidColor ( sprite, color )
- PS.spriteSolidAlpha ( sprite, alpha )
- PS.spriteImage ( image, region )
- PS.spritePlane ( sprite, plane )
- PS.spriteShow ( sprite, show )
- PS.spriteAxis ( sprite, x, y )
- PS.spriteMove ( sprite, x, y )
- PS.spriteCollide ( sprite, exec )
- PS.spriteDelete ( sprite )
- PS.random ( val )
- PS.seed ( val )
- PS.date ( )
- PS.elapsed ( )
- PS.makeRGB ( r, g, b )
- PS.unmakeRGB ( rgb, colors )
- PS.applyRect ( left, top, width, height, exec, ... )
- PS.hex ( value, padding )
- PS.keyRepeat ( repeat, init, delay )