Back to Browse

How to draw a beautiful octave using python code?

107 views
Jan 21, 2023
2:14

Code: import turtle as t import colorsys as cs t.setup(height=800,width=800) t.speed(0) t.width(2) t.bgcolor('black') t.seth(45) n=180 for i in range(n): t.begin_fill() t.color(cs.hsv_to_rgb(i/6,i/n,0.8)) t.fillcolor(cs.hsv_to_rgb(i/6,i/n,1)) t.right(90) t.circle(i*1.2,90) t.end_fill() t.right(59) t.hideturtle() t.done() #pythonturtle #codingtechnique #octave

Download

1 formats

Video Formats

360pmp43.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to draw a beautiful octave using python code? | NatokHD