2011-03-23 00:53:44 +01:00
|
|
|
Widget:
|
2012-08-07 11:45:53 +02:00
|
|
|
canvas:
|
2011-03-23 00:53:44 +01:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
StencilPush
|
2011-03-23 00:53:44 +01:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
# create a rectangle mask, from pos 100, 100, with a 100, 100 size.
|
|
|
|
Rectangle:
|
|
|
|
pos: 100, 100
|
|
|
|
size: 100, 100
|
2011-03-23 00:53:44 +01:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
StencilUse
|
2011-03-23 00:53:44 +01:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
# we want to show a big green rectangle, however, the previous stencil
|
|
|
|
# mask will crop us :)
|
|
|
|
Color:
|
|
|
|
rgb: 0, 1, 0
|
|
|
|
Rectangle:
|
|
|
|
size: 900, 900
|
2011-03-23 00:53:44 +01:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
StencilUnUse
|
2012-04-16 16:20:08 +02:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
# Remove the mask previously set
|
|
|
|
Rectangle:
|
|
|
|
pos: 100, 100
|
|
|
|
size: 100, 100
|
2012-04-16 16:20:08 +02:00
|
|
|
|
2012-08-07 11:45:53 +02:00
|
|
|
StencilPop
|