public async Task Render(IChroma chroma)
        {
            var canvas = new ChromaCanvas();

            foreach (var layer in Layers)
            {
                layer.Render(canvas);
            }

            await canvas.SetEffect(chroma).ConfigureAwait(false);
        }
Beispiel #2
0
        public async Task Render(IChroma chroma, object state)
        {
            var canvas = new ChromaCanvas();

            for (var i = 0; i < _layers.Count; i++)
            {
                _layers[i].Render(canvas, state);
            }

            await canvas.SetEffect(chroma).ConfigureAwait(false);
        }
 internal void Render(ChromaCanvas canvas) => OnRender(canvas);
 protected abstract void OnRender(ChromaCanvas canvas);
Beispiel #5
0
 internal void Render(ChromaCanvas canvas, object state) => OnRender(canvas, state);
Beispiel #6
0
 protected abstract void OnRender(ChromaCanvas canvas, object state);