TURTLE GRAPHICS
STORY OF TURTLE GRAPHICS
Imagine you have a turtle on a canvas that is
holding a pen. The pen can be either up or
down. Now think of the turtle as a robot that
you can control by issuing commands. TURTLE
GRAPHICS pen it holds is down, the turtle leaves
a trail when you tell it to move to a new
location. When the pen is up, the turtle moves
to a new position but no trail is left.
Turtle graphics
Turtle graphics is a term in computer
graphics vector graphics using a turtle upon
a Cartesian plane.
Attributes of Turtle
The turtle has three attributes:
Location
Orientation angle
Pen
IN BUILT FUNCTIONS
turtle.color("orange") - Represents the turtle
colour is Orange
turtle.pensize(5) - Thickness of the turtle
is 5 cm.
Clearscreen - After the image is
drawn finally it will clear
the screen.
IN BUILT FUNCTIONS IN TURTLE
Turtle Graphics in CG
SQUARE
import turtle
turtle.color("orange")
turtle.pensize(5)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
CIRCLE
import turtle
turtle.circle(50)
turtle.fillcolor("violet")
turtle.clearscreen()
PENTAGON
import turtle
turtle.forward(50)
turtle.right(72)
turtle.forward(50)
turtle.right(72)
turtle.forward(50)
turtle.right(72)
turtle.forward(50)
turtle.right(72)
turtle.forward(50)
turtle.right(72)
HEXAGON
import turtle
turtle.forward(50)
turtle.right(60)
turtle.forward(50)
turtle.right(60)
turtle.forward(50)
turtle.right(60)
turtle.forward(50)
turtle.right(60)
turtle.forward(50)
turtle.right(60)
turtle.forward(50)
turtle.right(60)
TRIANGLE
import turtle
turtle.color("green")
turtle.right(45)
turtle.forward(100)
turtle.right(45)
turtle.backward(100)
turtle.right(45)
turtle.right(45)
turtle.forward(100)
turtle.right(45)
turtle.backward(100)
STEPS
import turtle
turtle.color("green")
turtle.backward(100)
turtle.left(90)
turtle.backward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.backward(100)
turtle.left(90)
STAR
import turtle
turtle.forward(50)
turtle.right(144)
turtle.forward(50)
turtle.right(144)
turtle.forward(50)
turtle.right(144)
turtle.forward(50)
turtle.right(144)
turtle.forward(50)
turtle.right(144)

More Related Content

PPTX
Computer graphics realism
PPT
PPTX
Raster animation
PPTX
Animation in Computer Graphics
PPTX
Anti- aliasing computer graphics
PPTX
Depth Buffer Method
PPT
Character generation
Computer graphics realism
Raster animation
Animation in Computer Graphics
Anti- aliasing computer graphics
Depth Buffer Method
Character generation

What's hot (20)

PPTX
Attributes of output primitives( curve attributes & area fill attributes)
PPTX
illumination model in Computer Graphics by irru pychukar
PPTX
Image & Graphics
PPTX
ANIMATION SEQUENCE
PPTX
Smoothing in Digital Image Processing
PPT
Random and raster scan
PPTX
Attributes of output Primitive
PPTX
2 d viewing computer graphics
PPT
hidden surface elimination using z buffer algorithm
PPTX
Filtering an image is to apply a convolution
PPTX
What is Digital Morphing and Its Techniques
PPTX
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
PDF
Notes 2D-Transformation Unit 2 Computer graphics
PPTX
Character attributes
PDF
4.intensity transformations
PDF
2D Transformation in Computer Graphics
PPTX
Raster scan systems with video controller and display processor
PPTX
Image Enhancement - Point Processing
ODP
image compression ppt
PPTX
Color models
Attributes of output primitives( curve attributes & area fill attributes)
illumination model in Computer Graphics by irru pychukar
Image & Graphics
ANIMATION SEQUENCE
Smoothing in Digital Image Processing
Random and raster scan
Attributes of output Primitive
2 d viewing computer graphics
hidden surface elimination using z buffer algorithm
Filtering an image is to apply a convolution
What is Digital Morphing and Its Techniques
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
Notes 2D-Transformation Unit 2 Computer graphics
Character attributes
4.intensity transformations
2D Transformation in Computer Graphics
Raster scan systems with video controller and display processor
Image Enhancement - Point Processing
image compression ppt
Color models
Ad

Similar to Turtle Graphics in CG (18)

PDF
Learning shape with python
PPTX
Intro to Python (High School) Unit #3
PPTX
Baabtra.com little coder chapter - 4
PDF
Seven waystouseturtle pycon2009
PPTX
Graphic programming using Turtle class in Python
PDF
Python book
PPTX
MODULE III.pptx
PPTX
An Introduction To Python - Graphics
PDF
Report om 3
PPTX
DDU Workshop Day-2 presentation (1).pptx
PPTX
2.2 turtle graphics
PPTX
coding /coding year 7 its good =========
PDF
Turtle Geometry the Python Way
PPTX
Introduction to the basic mathematical concept with Python Turtle.
PPTX
Pa1 turtle
PDF
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
PDF
Computing With Python An Introduction To Python For Science Engineering Claus...
PPTX
Programming in python-turtle-presentation
Learning shape with python
Intro to Python (High School) Unit #3
Baabtra.com little coder chapter - 4
Seven waystouseturtle pycon2009
Graphic programming using Turtle class in Python
Python book
MODULE III.pptx
An Introduction To Python - Graphics
Report om 3
DDU Workshop Day-2 presentation (1).pptx
2.2 turtle graphics
coding /coding year 7 its good =========
Turtle Geometry the Python Way
Introduction to the basic mathematical concept with Python Turtle.
Pa1 turtle
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Computing With Python An Introduction To Python For Science Engineering Claus...
Programming in python-turtle-presentation
Ad

More from KABILESH RAMAR (20)

PPTX
Online i os
PPTX
Linux and windows
PPTX
Android os versions and architecture
PPTX
Ray Tracing in Computer Graphics
PPTX
Email security
PPTX
Visible surface detection methods
PPTX
Raster scan and random scan
PPTX
Properties of light
PPTX
Polygon mesh
PPTX
Liquid crystal display
PPTX
Ink jet printer
PPTX
Illumination models
PPTX
Dot matrix printers
PPTX
Cathode ray tubes
PPTX
NEAR FIELD COMMUNICATION
PPTX
PPTX
Digital libraries
PPTX
Covert networks
PPTX
Ethernet
PPTX
Wi – fi ( 802.11)
Online i os
Linux and windows
Android os versions and architecture
Ray Tracing in Computer Graphics
Email security
Visible surface detection methods
Raster scan and random scan
Properties of light
Polygon mesh
Liquid crystal display
Ink jet printer
Illumination models
Dot matrix printers
Cathode ray tubes
NEAR FIELD COMMUNICATION
Digital libraries
Covert networks
Ethernet
Wi – fi ( 802.11)

Recently uploaded (20)

PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PDF
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Design Guidelines and solutions for Plastics parts
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
introduction to high performance computing
PPTX
communication and presentation skills 01
PPTX
Software Engineering and software moduleing
PDF
Soil Improvement Techniques Note - Rabbi
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
Feature types and data preprocessing steps
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PPTX
Information Storage and Retrieval Techniques Unit III
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Design Guidelines and solutions for Plastics parts
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Categorization of Factors Affecting Classification Algorithms Selection
introduction to high performance computing
communication and presentation skills 01
Software Engineering and software moduleing
Soil Improvement Techniques Note - Rabbi
Abrasive, erosive and cavitation wear.pdf
Exploratory_Data_Analysis_Fundamentals.pdf
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Fundamentals of Mechanical Engineering.pptx
Feature types and data preprocessing steps
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
Information Storage and Retrieval Techniques Unit III

Turtle Graphics in CG