Subtractor

Constructor

Subtractor <id> (double left, double right)

Or, within an expression:

<process_id|number> - <process_id|number>

Action

Subtracts right to left each time one of it is updated.

Predefined children

  • DoubleProperty: left, right, result.

Example


use core
use base
use display
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Rectangle r1 (0, 0, 100, 70, 0, 0)
  f.width - r1.width => r1.x
}