u02: Implement preview for star

It is fixed to a star with 5 spikes, but better than a circle.
This commit is contained in:
Simon Bruder 2023-05-10 21:05:45 +02:00
parent 85e38a358d
commit 583f2ecd3e

View file

@ -42,7 +42,7 @@ std::vector<std::pair<float, float>> star(int n, float r1, float r2, int x,
}
star_tool::star_tool(canvas_buffer &canvas) : tool_base(canvas) {
shape = TS_CIRCLE; // TODO: Use star for preview
shape = TS_STAR;
}
void star_tool::draw(int x0, int y0, int x1, int y1) {