Exemplo n.º 1
0
        public async Task ShowMessage(
            string message,
            float scrollSpeed        = 0.1f,
            RgbColor textColor       = null,
            RgbColor backgroundColor = null)
        {
            textColor       = textColor ?? RgbColor.CreateWhite();
            backgroundColor = backgroundColor ?? RgbColor.CreateBlack();

            await ExecuteAsync(
                "showMessage",
                new PythonArgument(message, true),
                new PythonArgument(scrollSpeed),
                new PythonArgument(textColor.AsString()),
                new PythonArgument(backgroundColor.AsString()));
        }
Exemplo n.º 2
0
 public void SetAllColors(RgbColor color)
 {
     _pixelsWithPositions.ForEach(pix => pix.Pixel.SetColor(color));
 }