static public Pen Pen(SerPen p) { Color c = SerColor.Color(p.sColor); Pen pen = new System.Drawing.Pen(c, p.width); pen.LineJoin = p.lineJoin; return(pen); }
// re-constructors public Pen Pen() { Color c = SerColor.Color(sColor); Pen pen = new System.Drawing.Pen(c, width); pen.LineJoin = lineJoin; return(pen); }
public void SetColors() { if(bodyColor == null) bodyColor = GameManager.SGM.villagerManager.BodyColors[Random.Range(0, GameManager.SGM.villagerManager.BodyColors.Length)]; if(eyeColor == null) eyeColor = GameManager.SGM.villagerManager.EyeColors[Random.Range(0, GameManager.SGM.villagerManager.EyeColors.Length)]; if(width == 0){ width = Random.Range(0.8f, 1.2f); height = Random.Range(0.8f, 1.2f); } }
public SerPen(Pen p) { sColor = new SerColor(p.Color); width = p.Width; lineJoin = p.LineJoin; }
public SerPen(Color c, float w) { sColor = new SerColor(c); width = w; }
static public SolidBrush SolidBrush(SerSolidBrush b) { Color c = SerColor.Color(b.sColor); return(new System.Drawing.SolidBrush(c)); }
public SolidBrush SolidBrush() { Color c = SerColor.Color(sColor); return(new System.Drawing.SolidBrush(c)); }
public SerSolidBrush(SolidBrush b) { sColor = new SerColor(b.Color); }
public SerSolidBrush(Color c) { sColor = new SerColor(c); }
static public Color Color(SerColor c) { return(System.Drawing.Color.FromArgb(c.Alpha, c.Red, c.Green, c.Blue)); }