public static GridTransform RowsAndCols(IC3DrawingSystem geo, int cols, int rows) { return(new GridTransform() { width = geo.Width / cols, height = geo.Height / rows }); }
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); }
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"); }
public Globals(IC3DrawingSystem drawSystem, SKSurface surface) { DrawSystem = drawSystem; Surface = surface; }
public string Draw(IC3DrawingSystem system, SKSurface surface) { return(draw(system, surface)); }