Posts

Showing posts from October 9, 2022

New Post

TURTLE GRAPHICS USING PYTHON || Turtle Star || 08 || ~xRay Pixy

Image
TURTLE GRAPHICS USING PYTHON || Turtle Star || 08 ||  STEPS Python Turtle Graphics Design First Import Turtle Here, variable r is considered a Turtle. Set Turtle Speed. Set Line Width. Set Background Color as while.  Select Colors for the Design. Create a List of Colors. For Loop Initialization. Access Colors from the List inside Loop. Set Direction for Turtle. SOURCE CODE import turtle r = turtle.Turtle() r = turtle.Pen() r.speed(1000) r.width(2) turtle.bgcolor('white') c = ['blue','lime','red','black','gold','aqua','purple','silver'] for x in range (600):     r.pencolor(c[x%8])     r.forward(x)     r.right(160) r.done() OUTPUT
More posts