public static List<float> draw() { List<Vector2> points = new List<Vector2>(); Vector2 place = Vector2.zero; for(int i = 0; i < 128/4; i++){ points.Add(new Vector2(place.x,place.y)); place.x+=5; } for(int i = 0; i < 128/4; i++){ points.Add(new Vector2(place.x,place.y)); place.y+=5; } for(int i = 0; i < 128/4; i++){ points.Add(new Vector2(place.x,place.y)); place.x-=5; } for(int i = 0; i < 128/4; i++){ points.Add(new Vector2(place.x,place.y)); place.y-=5; } Recognizer r = new Recognizer(); return r.Vectorize(r.Resample(points,64)); }
public static List<float> draw() { List<Vector2> vector = new List<Vector2>(); for(int x=0; x <128*5; x+=5){ vector.Add(new Vector2(x,0)); } Recognizer r = new Recognizer(); return r.Vectorize(r.Resample(vector,64)); }
public static List<float> draw() { List<Vector2> points = new List<Vector2>(); float theta = 0; for(int i = 2; i <= 360; i +=2){ theta = i * Mathf.Deg2Rad; points.Add(new Vector2(Mathf.Cos(theta)*10,Mathf.Sin(theta)*10)); } Recognizer r = new Recognizer(); return r.Vectorize(r.Resample(points,64)); }