Archive

Posts Tagged ‘Art’

Python: Spirograph

November 22, 2020 Leave a comment

Learning : Python
Subject: Writing Python codes to generate Spirograph Art

Writing codes to draw always funny time for me, playing around numbers, changing attributes to get something new and changing it again .. and again ..
In this post, we will write a code to draw some spirograph shapes, easy and shrort code will do the job. So lets Start ..

We will use Python Library turtle to draw, and will write one Function call it def draw_it(h,sz,ang) will take three arguments: h:number of heads, sz: size, ang: angle, then we will call this function to draw our Spirograph Art.
Code:
First we will set-up the turtle:

# turtle set-up
import turtle
t = turtle.Turtle()
t.shape("dot")
t.speed(0)

t.hideturtle()

Then here is the main Function to draw our graphs

# draw_it() function 

def draw_it(h,sz,ang) : 
  c = 0
  while True : 
    for i in range (h) : 
      t.forward(sz)
      t.right(360/h)
      
    t.right(ang) 
    c +=1
    if c >=360/ang :
      break

Then we call the function and pass the parameters, I tried several combinations and will include them in the source file in Download section. Here are some out-puts.

Calling:
t.pencolor(‘lightgray’)
draw_it(19,19,19)
t.pencolor(‘gray’)
draw_it(17,17,17)
t.pencolor(‘black’)
draw_it(15,15,15)

Hope you enjoy, have fun and change the numbers to get new shapes ..

To Download my Python code (.py) files Click-Here

Follow me on Twitter..

By: Ali Radwani

Mushroom House

October 30, 2020 Leave a comment

Here is another attempt to improve my skills in sketching and Coloring using water color. Mushroom House.

Ali radwani drawing sketch challenge pen pencil Coloring watercolor

Another SketcheBook

October 13, 2020 Leave a comment

After my 6th Sketchebooks I start creating sketchebooks for my self, cutting the A4 papers, punch or glue them together then creating the cover and Sketch over it, other sketchbooks are purchased online then again I draw/sketch on it’s cover. Sample of what I made here ..

Sketch Books 12, 13 Here

Sketch Books 22, 23 Here

This one here is my 42nd Sketchebook Cover, I purchased this from AliExpress site, verey nice and small but the papers are very thin and the colors appear on the other side of the page, over all, they are doing the job.

More sketches are available in My Sketchbooks Page..

1Hour1Sketch challenge

September 26, 2020 Leave a comment

While searching the Twitter I found a challenge called “1hour1sketch” posting a theme or a photo and asking however want to participate and doing/sketching around the idea, so I thought I can try it and get a subject to draw. Here is my sketch for this week..

I am using galaxy Note9 and Samsung Now app.


Follow me on Twitter..

By: Ali Radwani

Daily Digital Sketch

September 24, 2020 Leave a comment

Here is the daily-sketch for today. I am using Galaxy Note 9 and Samsung Note Application for drawing and Coloring..

more on my Twitter here H.ta3kees


Follow me on Twitter..

By: Ali Radwani

Two years ago Sketch

August 21, 2020 2 comments

Looking back in my sketchbooks this is a sketch from Two years back on same day 21.8.2018, this Winnie the Pooh was a sticker on my Daughter pincel case. I color it last week using my Galaxy Note 9.

Sketch from One Year Back

August 5, 2020 Leave a comment

This is an Elephant sketch from One #year ago i use a pencile then black ink pen.

Follow me on Twitter..

To The Freedom

August 3, 2020 Leave a comment

Another sketche I woke on with watercolor.

Follow me on Twitter

Lily Flower Drawing


Away from Coding and Python projects, drawing is my best way to relax, along with coffee and almost 15min of sketching with pencil then ink-ed it, here is the Lily.

Follow Me on Twitter

Sketch to Relax


This is a last night Sketch, just to break or stop thinking in codes and functions that are not working well. I think I need to stop codeing for 2-3 Days.