New Post

Intelligent Traffic Management Using || AI & Metaheuristics || ~xRay Pixy

Image
Hybrid Artificial Intelligence and Metaheuristics for Smart City TRafci Management Problem Video Chapters: 00:00 Introduction 00:40 Smart Cities 01:14 Traditional Methods for Traffic Management 02:12 Hybrid Approach AI and Metaheuristics 02:47 STEPS for Hybrid  Traffic Management System 08:40 Advantages of Smart Traffic Management System 09:33 Conclusion

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

TURTLE GRAPHICS USING PYTHON || Turtle Star || 08 || 


STEPS
  1. Python Turtle Graphics Design
  2. First Import Turtle
  3. Here, variable r is considered a Turtle.
  4. Set Turtle Speed.
  5. Set Line Width.
  6. Set Background Color as while. 
  7. Select Colors for the Design. Create a List of Colors.
  8. For Loop Initialization.
  9. Access Colors from the List inside Loop.
  10. 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



Comments

Popular Post

PARTICLE SWARM OPTIMIZATION ALGORITHM NUMERICAL EXAMPLE

Cuckoo Search Algorithm for Optimization Problems

Particle Swarm Optimization (PSO)

PSO (Particle Swarm Optimization) Example Step-by-Step

PSO Python Code || Particle Swarm Optimization in Python || ~xRay Pixy

Bat algorithm Explanation Step by Step with example

Grey Wolf Optimization Algorithm

how is the LBP |Local Binary Pattern| values calculated? Step-by-Step with Example

Grey Wolf Optimization Algorithm Numerical Example

Whale Optimization Algorithm Code Implementation || WOA CODE || ~xRay Pixy