public void DrawEyeSocket(GridSpace grid, double thickness) { DrawOvoidInBox("black", "none", grid); grid = grid.Inset(thickness, InsetType.AllSides); DrawOvoidInBox("white", "none", grid); grid = grid.Inset(thickness, InsetType.AllSides); DrawEyeInBox("white", "black", grid, thickness * 0.5); }
public void DrawBakersUform1(GridSpace grid, double thickness) { DrawUformInBox("black", "none", grid); grid = grid.Inset(thickness, InsetType.BottomFixed); DrawUformInBox("white", "none", grid); grid = grid.Inset(thickness, InsetType.BottomFixed); DrawUformInBox("white", "black", grid); GridSpace leftgrid = grid.Inset(thickness*0.65, InsetType.LeftHalf); DrawStackedUform("white", "red", leftgrid, thickness); GridSpace rightgrid = grid.Inset(thickness * 0.65, InsetType.RightHalf); DrawStackedUform("white", "red", rightgrid, thickness); }
public void DrawEyeInBox(String fillStr, String outlineStr, GridSpace grid, double thickness) { m_file.DrawCatmullRomSplines(fillStr, outlineStr, new Path(grid[-0.10, 0.400], grid[0.000, 0.500], grid[0.188, 0.860], grid[0.500, 1.000], grid[0.813, 0.860], grid[1.000, 0.500], grid[1.100, 0.400]), new Path(grid[1.100, 0.400], grid[1.000, 0.300], grid[0.884, 0.054], grid[0.500, 0.000], grid[0.116, 0.054], grid[0.000, 0.300], grid[-0.10, 0.400])); grid = grid.Inset(thickness, InsetType.AllSides); DrawOvoidInBox(outlineStr, "none", grid); DrawOvoidInBox(fillStr, "none", grid.Inset(thickness, InsetType.AllSides)); DrawOvoidInBox(outlineStr, "none", grid.Inset(thickness * 2, InsetType.CupUp)); }
static void Main(string[] args) { String fileName = "nwc_" + System.DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".eps"; EPSFile file = new EPSFile(fileName); NWCArt artwork = new NWCArt(file); #if false //draw the same thing at different orientations. for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { double x = 25.0 * ((i+1)* (i+2) / 2.0); double y = 25.0 * ((j+1) * (j+2) / 2.0); double width = 25.0 * (i + 1); double height = 25.0 * (j + 1); GridSpace grid = new GridSpace( new Path( new Point2D(x,y), //new Point2D(x+width*0.5, y + height * 0.1), new Point2D(x + width, y ) ), new Path( new Point2D(x, y + height), new Point2D(x + width, y + height) ) ); artwork.DrawBox("lightgray", "none", grid); artwork.DrawUformInBox("white","black",grid); } } #endif #if true //odd quadrilateral. // GridSpace grid2 = new GridSpace(new Point2D(100, 600), // new Point2D(500, 550), // new Point2D(250, 720), // new Point2D(500, 800)); GridSpace grid2 = new GridSpace(new Point2D(0, 0), new Point2D(350, 0), new Point2D(0, 700), new Point2D(350, 700)); artwork.DrawBox("lightgray", "none", grid2); artwork.DrawUformInBox("white","black",grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); grid2 = grid2.Inset(50, InsetType.Top); artwork.DrawUformInBox("none", "black", grid2); #endif #if false artwork.DrawSun(100, 10); #endif file.Close(); System.IO.File.Copy(fileName, "latest.eps", true); System.IO.File.Move(fileName, ".\\archive\\" + fileName); }
public void DrawStackedUform(string fillStr, string outlineStr, GridSpace grid, double thickness) { DrawUformInBox(outlineStr, "none", grid); DrawSplitInBox(fillStr, "none", grid.Inset(thickness, InsetType.TopHalf)); //DrawUformInBox(fillStr, "none", grid.Inset(thickness, InsetType.TopHalf)); //DrawOvoidInBox(fillStr, "none", grid.Inset(thickness, InsetType.TopHalf)); DrawUformInBox(fillStr, "none", grid.Inset(thickness, InsetType.BottomHalf)); grid = grid.Inset(thickness, InsetType.BottomHalf); DrawOvoidInBox(outlineStr, "none", grid.Inset(thickness, InsetType.TopHalf)); DrawUformInBox(outlineStr, "none", grid.Inset(thickness, InsetType.BottomHalf)); }