Test script:
from p5 import *
def setup():
size(500,500)
def draw():
background(255)
direction = Vector.random_2D()
direction.magnitude *=100
translate(width/2, height/2)
line((0,0), (direction.x, direction.y))
run()
Expected behavior:
The line should point at random directions.
Actual behavior
The line only ever points toward the positive quadrant.
p5 version: 0.3.0a2
Python version: 3.6.2
Operating System: Windows 10