News Examples Documentation Download Buy Forum Contact

Documentation

Plugins

XML Extensions

Tools


Third Party Software
for krpano

Arithmetic Plugin arithmetic.swf / arithmetic.js
by gongdeming - gongdeming@qq.com

Description

A math plugin that supports multiple integrated arithmetic operations.

Download

Arithmetic.zip  (Arithmetic Plugin, 5kb)
Arithmetic Example.zip  (Arithmetic Plugin Example , 105kb)

Syntax / XML Usage Example

<layer name="arithmetic" 
url="arithmetic.swf"
alturl="arithmetic.js"
preload="true" />

Plugin Actions

The Arithmetic plugin add its actions directly to the krpano root. That means the actions can be called like normal krpano actions.

  • arithmetic(variable,formula)
    • Conducted four arithmetic
    • variable
      The variable where the result of the calculation will be stored.
      When the variable doesn't exists it will be created.
    • formula
      Four arithmetic formula
    <action name="startup">
        arithmetic(variable, ((%1+layer[%2].x)*layer[%2].y-layer[%2].width)/%1 );
        trace(get(variable));
    </action>

Example

(xml:arithmetic.xml)
CLICK TO VIEW EXAMPLE

License

You are free to use the software in your projects. If you feel making a donation so I can afford to continue making these plugins and making them available please use Donate button and choose amount afordabele for you.