Пример #1
0
 public static GridTransform RowsAndCols(IC3DrawingSystem geo, int cols, int rows)
 {
     return(new GridTransform()
     {
         width = geo.Width / cols,
         height = geo.Height / rows
     });
 }
Пример #2
0
 public string Draw(IC3DrawingSystem system, SKSurface surface)
 {
     surface.Canvas.DrawRect(0, 0, system.Width, system.Height, fill);
     foreach (var ball in balls)
     {
         ball.Draw(this, surface.Canvas);
     }
     return(null);
 }
Пример #3
0
        public string Draw(IC3DrawingSystem system, SKSurface surface)
        {
            surface.Canvas.DrawText("Hello World", new SKPoint(10, 10), new SKPaint()
            {
                Color = new SKColor(0, 0, 0)
            });

            return("OK");
        }
Пример #4
0
 public Globals(IC3DrawingSystem drawSystem, SKSurface surface)
 {
     DrawSystem = drawSystem;
     Surface    = surface;
 }
Пример #5
0
 public string Draw(IC3DrawingSystem system, SKSurface surface)
 {
     return(draw(system, surface));
 }