Skip to content

Commit

Permalink
Fixed polygon example (code + picture)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurovanetti authored Oct 24, 2024
1 parent f596ddd commit 174664a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/flame/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -1070,9 +1070,9 @@ For example you could create a diamond shapes polygon like this:
void main() {
PolygonComponent.relative(
[
Vector2(0.0, 1.0), // Middle of top wall
Vector2(0.0, -1.0), // Middle of top wall
Vector2(1.0, 0.0), // Middle of right wall
Vector2(0.0, -1.0), // Middle of bottom wall
Vector2(0.0, 1.0), // Middle of bottom wall
Vector2(-1.0, 0.0), // Middle of left wall
],
size: Vector2.all(100),
Expand Down
Binary file modified doc/images/polygon_shape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 174664a

Please sign in to comment.