Skip to content

Commit

Permalink
Update default values
Browse files Browse the repository at this point in the history
  • Loading branch information
dylannalex committed Jul 9, 2022
1 parent a04b6e5 commit 34953eb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions curvipy/graphing_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ def _is_float(result: Any) -> bool:
class GraphingCalculator(turtle.Turtle):
def __init__(
self,
drawing_speed=10,
background_color: str = "white",
curve_color: str = "black",
window_title: str = "curvipy",
drawing_speed: int = 11,
background_color: str = "#F1FAEE",
curve_color: str = "#457B9D",
curve_width: int = 4,
vector_color: str = "green",
vector_color: str = "#E63946",
vector_width: int = 3,
vector_head_size: int = 10,
show_axis: bool = True,
axis_color: str = "grey",
axis_color: str = "#A8DADC",
axis_width: int = 2,
) -> None:
"""
:param window_title: title to display on window
:param drawing_speed: integer value
:param background_color: color name or hex code
:param curve_color: color name or hex code
Expand All @@ -46,6 +48,7 @@ def __init__(
turtle.Turtle.__init__(self)
self.shapesize(0.1, 0.1, 0.1)
self.shape("square")
turtle.title(window_title)
turtle.bgcolor(background_color)

# Screen attributes
Expand Down

0 comments on commit 34953eb

Please sign in to comment.