Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate random ellipse #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Generate random ellipse #3

wants to merge 1 commit into from

Conversation

saadtaame
Copy link

@saadtaame saadtaame commented Feb 6, 2018

I think that you should use height in the function generate_elipse (your are using width only right now):

def generate_ellipse():
	x = random.randint(0, IMAGE_SIZE[0])
	y = random.randint(0, IMAGE_SIZE[1])
	width = random.randint(0, IMAGE_SIZE[0]/2)
	height = random.randint(0, IMAGE_SIZE[1]/2)
	return [x, y , x + width, y + height] # Changed this line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants