FillRule

Constructor

FillRule <id> (<0|1>)

Action

Specifies the rule to fill the next shapes.

Predefined children

a.

Example


use core
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 400, 400)
  FillRule r1 (0)
  Polygon poly1 {
    Point p1 (50, 0)
    Point p2 (21, 90)
    Point p3 (98, 35)
    Point p4 (2, 35)
    Point p5 (79, 90)
  }
  FillRule r2 (1)
  Polygon poly2 {
    Point p1 (150, 0)
    Point p2 (121, 90)
    Point p3 (198, 35)
    Point p4 (102, 35)
    Point p5 (179, 90)
  }
}

run root
run syshook