Draw Android logo. Using python turtle.

import turtle as tt.penup()t.goto(-80,80)t.pendown() t.speed(0)t.pencolor(“#3DDC84”) def circle(): t.begin_fill() t.fillcolor(‘white’) t.circle(7) t.end_fill() def android1(): t.begin_fill() t.fillcolor(“#3DDC84”) t.forward(150) t.left(90) for i in range(238): t.left(0.76) t.forward(1) t.end_fill() t.penup() t.goto(-40,120) t.pendown() circle() t.penup() t.goto(24,120) t.pendown() circle() t.penup() t.goto(-34,150) t.pendown() t.pensize(4) t.right(140) t.forward(40) t.penup() t.goto(34,144) t.pendown() t.pensize(4) t.right(80) t.forward(46) def android2(): t.begin_fill() t.fillcolor(“#3DDC84”) t.pensize(1) t.right(141) t.forward(100) for i in range(20):Continue reading “Draw Android logo. Using python turtle.”

Design a site like this with WordPress.com
Get started