FillOpactity

Constructor

FillOpacity <id> (double a) // a must be in the range [0,1]

Action

Specifies the opacity that will be applied to fill the next shapes. The newly defined opacity does not replace the previous one, it is multiplied by it.

Predefined children

  • DoubleProperty: a.

Example


use core
use display
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 400, 400)
  FillColor fc (200, 150, 100)
  Rectangle r (180, 180, 100, 100, 0, 0)
  FillOpacity a (0.8)
  FillColor fc2 (100, 150, 200)
  Circle c1 (200, 200, 50)
}