SignInverter

Constructor

SignInverter <id> (double init_val)

Or, within an expression:

-<process_id|number>

Action

Set the ouput property to the opposite value of the input property each time input is updated.

Predefined children

  • DoubleProperty: input, output.

Example


use core
use base
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Circle c (100, 100, 10)
  -f.move.x => c.cx
}

run root
run syshook