Archive

Posts Tagged ‘Draw’

Python project


Python: Draw Flower

Drawing with Python

In this post i tried to draw another flower using arcs of circles, i get a simple one and i guess with more sizes we can do more complex shape.

You can play with the code and change the numbers, size and rotation degree and let’s see what we will have.

t = turtle.Turtle()
t.hideturtle()
t.pendown()
for x in range (30):

t.circle(60,70)

if x %3==0:

t.circle (10,90)

Follow me on Twitter..

Advertisements

Python Project

December 3, 2018 3 comments



Python: Draw Flower

Drawing with Python

One of my favorite areas is drawing, and when its come to programming languages, one of the first thing i look after is the commands that let me draw lines and shapes.

In python, we have to import a library to help us in this task, here in this short code block I am using codes to draw a flower shape. We can improve the idea later but i want the first version to be as simple as i can. So lets see the code.


# We have to import this library
import turtle

# Here are some setting
t = turtle.Turtle()
t.shape(“point”)
t.color(‘black’)
t.speed(9)
t.left(0)
t.penup
size=10
#This function to draw one petal
def petal():

t.pendown()

for x in range (40):

t.forward(size)

t.left(x)

t.penup()

left_d=-15

for pet in range (8):

petal()

t.goto(0,0)

t.left(-15)

———————————————–

From my Sketch Book




Bird From my Sketch Book

I am sketching to enhance my skill, here is one of sketches from my sketchbook using pencil as a guide-line and ink-pen to finish the drawing.


Click to Enlarge

::My SketchBook::
Sketch of: Bird
Using: Ink-Pen
Date: 5/12/2017
SketchBook: SketchBook # 22
More Sketches: Click Here



Follow me on Twitter..


Inst_icon




Ali,

From my Sketch book




Giraffe From my Sketch Book

I am sketching to enhance my skill, here is one of sketches from my sketchbook using pencil as a guide-line and ink-pen to finish the drawing.


Click to Enlarge

::My SketchBook::
Sketch of: Giraffe
Using: Ink-Pen
Date: 15/10/2017
SketchBook: SketchBook # 22
More Sketches: Click Here



Follow me on Twitter..


Inst_icon




Ali,

From my Sketch Book

March 29, 2018 Leave a comment



Little Sparrow From my Sketch Book

I am sketching to enhance my skill, here is one of sketches from my sketchbook using pencil as a guide-line and ink-pen to finish the drawing.


Click to Enlarge

::My SketchBook::
Sketch of: Little Sparrow
Using: Ink-Pen
Date: 29/12/2017
SketchBook: SketchBook # 23
More Sketches: Click Here



Follow me on Twitter..


Inst_icon




Ali,

From my Sketchbook

March 26, 2018 Leave a comment



Touche Turtle From my Sketch Book

I am sketching to enhance my skill, here is one of sketches from my sketchbook using pencil as a guide-line and ink-pen to finish the drawing.


Click to Enlarge

::My SketchBook::
Sketch of: Touche Turtle
Using: Ink-Pen
Date: 21/1/2017
SketchBook: SketchBook # 13
More Sketches: Click Here



Follow me on Twitter..


Inst_icon




Ali,

From my sketch book

March 24, 2018 Leave a comment



Old Mosque From my Sketch Book

I am sketching to enhance my skill, here is one of sketches from my sketchbook using pencil as a guide-line and ink-pen to finish the drawing.


Click to Enlarge

::My SketchBook::
Sketch of: Water Color
Using: Ink-Pen
Date: 11/1/2017
SketchBook: SketchBook # 13
More Sketches: Click Here



Follow me on Twitter..


Inst_icon




Ali,