public override void OnDraw(Graphics2D graphics2D) { if (count++ == 20) { StencilCSG csgTest = new StencilCSG(300, 300); AddChild(csgTest); } this.NewGraphics2D().Clear(new RGBA_Bytes(255, 255, 255)); base.OnDraw(graphics2D); }