문제

How to draw circles with random radius,colors and positions? How to declare circle? I've got already functions to make colors and X Y positions random bur I do not know how to draw a circle

도움이 되었습니까?

해결책

Here is one of many, many ways.

import turtle

geoff = turtle.Turtle()

geoff.pencolor(my_color)
geoff.setpos(my_x, my_y)
geoff.circle(my_radius)

Where my_x, my_y, my_radius and my_color are all predetermined random values, but you said that you could already get those.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top