Beispiel #1
0
        public void DrawCircle(cpVect center, float radius, cpColor color)
        {
            var centerPoint  = center.ToCCPoint();
            var colorOutline = color.ToCCColor4B();
            var colorFill    = colorOutline * 0.5f;

            base.DrawCircle(centerPoint, radius, colorOutline);
            base.DrawSolidCircle(centerPoint, radius, colorFill);
        }
		public void DrawSegment(cpVect from, cpVect to, float radius, cpColor color)
		{
			base.DrawSegment(from.ToCCPoint(), to.ToCCPoint(), radius, color.ToCCColor4F());
		}
		public void DrawDot(cpVect pos, float radius, cpColor color)
		{
			//base.DrawDot(pos.ToCCPoint(), radius, color.ToCCColor4F());
			base.DrawSolidCircle(pos.ToCCPoint(), radius, color.ToCCColor4B());
		}
		public void DrawCircle(cpVect center, float radius, float angle, int segments, cpColor color)
		{
			base.DrawCircle(center.ToCCPoint(), radius, angle, segments, color.ToCCColor4B());
		}
		public void DrawSolidCircle(cpVect center, float radius, cpColor color)
		{
			base.DrawCircle(center.ToCCPoint(), radius, color.ToCCColor4B());
		}
		public void DrawCircle(cpVect center, float radius, cpColor color)
		{
			var centerPoint = center.ToCCPoint();
			var colorOutline = color.ToCCColor4B();
			var colorFill = colorOutline * 0.5f;
			base.DrawCircle(centerPoint, radius, colorOutline);
			base.DrawSolidCircle(centerPoint, radius, colorFill);
		}
Beispiel #7
0
 public void DrawSegment(cpVect from, cpVect to, float radius, cpColor color)
 {
     base.DrawSegment(from.ToCCPoint(), to.ToCCPoint(), radius, color.ToCCColor4F());
 }
Beispiel #8
0
 public void DrawDot(cpVect pos, float radius, cpColor color)
 {
     //base.DrawDot(pos.ToCCPoint(), radius, color.ToCCColor4F());
     base.DrawSolidCircle(pos.ToCCPoint(), radius, color.ToCCColor4B());
 }
Beispiel #9
0
 public void DrawCircle(cpVect center, float radius, float angle, int segments, cpColor color)
 {
     base.DrawCircle(center.ToCCPoint(), radius, angle, segments, color.ToCCColor4B());
 }
Beispiel #10
0
 public void DrawSolidCircle(cpVect center, float radius, cpColor color)
 {
     base.DrawCircle(center.ToCCPoint(), radius, color.ToCCColor4B());
 }