For loop, nice.
Deserves so many views! Great content!
Sir pls describe full video how to run computer graphics project in python
from turtle import * import colorsys bgcolor('black') tracer(500) def draw(): h = 0 for i in range(100): c = colorsys.hsv_to_rgb(h, 1, 1) h += 0.01 # Slightly adjusted to avoid rapid color cycling up() goto(0, 0) down() color('black') fillcolor(c) begin_fill() rt(98) circle(i, 12) fd(290) fd(i) lt(29) for j in range(129): fd(i) circle(j, 299, steps=2) end_fill() draw() done()
from turtle import * import colorsys bgcolor ('black') tracer (500) def draw(): h = 0 for i in range(100): c = colorsys.hsv_to_rgb(h,1,1) h += 0.5 up() goto(0,0) down() color('white') fillcolor (c) begin_fill() rt (98) circle(i,12) fd(i) lt (29) for j in range(129): fd(i) circle(j, 299, steps=2) end_fill() draw() done()
what program was used?
First go to terminal and install turtle and colorsys type pip install turtle for install turtlle and type pip install colorsys for colorsys install after installing modules in your terminal type this code in your python file. Code: from turtle import * import colorsys bgcolor('black') tracer(500) def draw(): h = 0 for i in range(100): c = colorsys.hsv_to_rgb(h, 1, 1) h += 0.01 # Slightly adjusted to avoid rapid color cycling up() goto(0, 0) down() color('black') fillcolor(c) begin_fill() rt(98) circle(i, 12) fd(290) fd(i) lt(29) for j in range(129): fd(i) circle(j, 299, steps=2) end_fill() draw() done()
Wow very cool loop..😊
Thanks I am new student ❤❤❤
Which app is best for practice of python for free in android phone?
Which IDE are u using ?
Bhai kon sa application hai 🙏🙏🙏
I learning python
its realy works
I did it .....🎉
from turtle import * import colorsys bgcolor("black") tracer(500) def draw(): h = 0 for i in range(75): c = colorsys.hsv_to_rgb(h, 1, 1) # Get color based on hue h += 0.01 # Smaller hue increment for smooth color transition up() goto(0, 0) # Move turtle to the center down() color('black') fillcolor(c) # Set the fill color begin_fill() rt(98) # Turn right 98 degrees circle(i, 12) # Draw part of a circle with radius 'i' and extent 12 fd(290) # Fixed movement forward (290 units) fd(i) # Dynamic forward movement based on 'i' lt(29) # Turn left 29 degrees for j in range(10): # Reduced inner loop iterations for better control fd(2 * i) # Forward movement based on 'i' circle(j, 50, steps=2) # Draw smaller polygons inside the shape end_fill() # End the fill after the shape is drawn draw() done()
Thanks for the knowledge 👍🏻
Nice I have also tried
Bhai ye phone se hua hai??
@Myself-v3b