# Set the center position of the graph center_x=250 center_y=250 # Color of the x and y axis axis_color=black # Weight of the line axis_weight=1 # Draw axis label axis_label_color=red axis_label=true # Drawing a cartesian graph draw_axis = -> stroke axis_color, axis_weight # Draw Axis Lines Y moveTo 0 , center_y line 500, 0 # Draw Axis Lines Y moveTo center_x , 0 line 0, 500 # Draw Axis Labels draw_labels = -> color axis_label_color bold true font 15 moveTo center_x , center_y move (500-center_x)-7 , -3 text "X" moveTo center_x , 0 move 7, 15 text "Y" # Use Functions to Draw draw_axis() draw_labels() # Hide the crosshair moveTo 0,0