2022-03-16 17:47:42 +01:00
|
|
|
package love.distributedrebirth.unicode4d.draw;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2022-10-20 03:06:56 +02:00
|
|
|
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
2022-08-24 17:33:39 +02:00
|
|
|
|
2022-10-15 02:34:58 +02:00
|
|
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-03-16 17:47:42 +01:00
|
|
|
public class DrawGlyphContour {
|
|
|
|
|
private final List<ImGlyphPoint> points = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
public class ImGlyphPoint {
|
|
|
|
|
int x;
|
|
|
|
|
int y;
|
|
|
|
|
boolean onCurve;
|
|
|
|
|
|
|
|
|
|
public ImGlyphPoint(int x, int y, boolean onCurve) {
|
|
|
|
|
this.x = x;
|
|
|
|
|
this.y = y;
|
|
|
|
|
this.onCurve = onCurve;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void point(int x, int y, boolean onCurve) {
|
|
|
|
|
points.add(new ImGlyphPoint(x,y, onCurve));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<ImGlyphPoint> getPoints() {
|
|
|
|
|
return points;
|
|
|
|
|
}
|
|
|
|
|
}
|