void UpdateLine () { line.Clear (); var effectiveWidth = Math.Max (0, width); line.DrawLine (CCPoint.Zero, new CCPoint (40, 0), effectiveWidth / 2, new CCColor4F (1, 1, 0, 1)); } }