Skip to content

Commit

Permalink
towards color scope
Browse files Browse the repository at this point in the history
  • Loading branch information
undertherain committed Sep 1, 2018
1 parent 1b6c3b7 commit fbb1746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contextfree/contextfree.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def __exit__(self, type, value, traceback):

class flip_y:
"""Defines scope of a view being reflected along the y axis"""

def __enter__(self):
global _ctx
self.matrix_old = _ctx.get_matrix()
Expand All @@ -102,7 +103,8 @@ def __exit__(self, type, value, traceback):

class color:
"""defines scope of changed color"""
def __init__(self, alpha=1):

def __init__(self, alpha=1, hue=0):
self.alpha = alpha
self.source_old = None

Expand Down

0 comments on commit fbb1746

Please sign in to comment.