Skip to content

Commit

Permalink
minor fix and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazariglez committed Nov 1, 2022
1 parent 7e2e2fb commit a91b3c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file.
- Added mipmapping support with `TextureBuilder::generate_mipmaps`.
- Added `WindowBackend::position` and `WindowBackend::set_position`.
- Fix lint warning `notan_main` macro.
- Added methods `.fill_color` and `stroke_color` for the Draw2d shapes to allow to stroke and fill with the same builder.
- Added method `Draw::star(spikes, outser_radius, inner_radius)` to draw stars.
- Added method `Draw::polygon(sides, radius)` to draw regular polygons.

## v0.7.1 - 08/10/2022

Expand Down
9 changes: 4 additions & 5 deletions crates/notan_draw/src/shapes/polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@ impl DrawProcess for Polygon {
path_builder.blend_mode(bm);
}

// let m = self.matrix.map_or(rot, |m| rot * m);
// let angle = 2.0 * PI / self.sides as f32;
// println!("ang: {}", angle);
// path_builder.rotate_from((self.pos.0, self.pos.1), angle);
//
if let Some(m) = self.matrix {
path_builder.transform(m);
}

let modes = self.modes;
modes.iter().enumerate().for_each(|(i, mode)| match mode {
None => {
Expand Down

0 comments on commit a91b3c7

Please sign in to comment.