Skip to content

Commit

Permalink
Merge pull request #95 from Schulich-Ignite/richard/rotate_v2
Browse files Browse the repository at this point in the history
Added rotate function again
  • Loading branch information
AlphaRLee authored Feb 15, 2021
2 parents 0d606f3 + e74aa89 commit c608b6b
Show file tree
Hide file tree
Showing 3 changed files with 1,149 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spark/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def clear(self, *args): pass
@extern
def background(self, *args): pass

@extern
def rotate(self, *args): pass

# From util.helper_functions.rect_functions

@extern
Expand Down
5 changes: 5 additions & 0 deletions spark/util/helper_functions/canvas_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ def helper_background(self, *args):
self.canvas.fill_style = fill
self.canvas.fill_rect(0, 0, self.width, self.height)
self.canvas.fill_style = old_fill

@validate_args([Real])
@ignite_global
def helper_rotate(self, *args):
self.canvas.rotate(args[0])
Loading

0 comments on commit c608b6b

Please sign in to comment.