导语:独乐乐不如众乐乐。——《孟子·梁惠王下》
课前看到其它班级同学的作品被选登出来,他们也开始努力开动大脑,运用学会的知识进行创作,希望被选上并发布。
瞧,在短短的课堂时间里,他们的创作潜力在作品中展现出来,都有哪些孩子的作品呢?
2020级5班张宇辰的作品
代码:
import turtle
turtle.speed(0)
turtle.pensize('40')
turtle.up()
turtle.pencolor('red')
turtle.goto(-300,110)
turtle.down()
turtle.forward(130)
turtle.up()
turtle.goto(-300,50)
turtle.down()
turtle.pencolor('blue')
turtle.forward(130)
turtle.goto(-300,50)
turtle.right(90)
turtle.forward(130)
turtle.up()
turtle.goto(-120,110)
turtle.down()
turtle.forward(190)
turtle.up()
turtle.goto(-40,110)
turtle.down()
turtle.forward(190)
turtle.left(90)
turtle.forward(110)
turtle.left(70)
turtle.forward(200)
turtle.right(140)
turtle.forward(200)
turtle.right(110)
turtle.forward(80)
2020级5班周金麟的作品
代码:
import turtle
turtle.bgcolor('blue')
turtle.pencolor('red')
turtle.pensize(2)
turtle.speed(0)
turtle.up()
turtle.goto(0,-150)
turtle.down()
turtle.circle(240)
turtle.up()
turtle.goto(100,100)
turtle.down()
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.up()
turtle.goto(-100,100)
turtle.down()
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.up()
turtle.goto(-120,10)
turtle.down()
turtle.right(90)
turtle.circle(110,180)
turtle.hideturtle()
2020级5班姜驰的作品
2020级5班徐陆然的作品
代码:
import turtle
turtle. pendown
turtle.pensize(5)
turtle.pencolor('green')
for i in range(4):
turtle.left(225)
turtle.forward(150)
turtle.right(90)
turtle.circle(-100,50)
turtle.goto(0,0)
turtle.done
2020级2班彭耀仁的作品
代码:
import turtle
turtle.bgcolor('red')
turtle.pensize(5)
turtle.begin_fill()
turtle.color('pink')
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.fillcolor('black')
turtle.end_fill()
turtle.pensize(5)
turtle.begin_fill()
turtle.color('pink')
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.fillcolor('black')
turtle.end_fill()
turtle.pensize(5)
turtle.begin_fill()
turtle.color('pink')
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.fillcolor('black')
turtle.end_fill()
turtle.pensize(5)
turtle.begin_fill()
turtle.color('pink')
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.left(100)
turtle.circle(400,20)
turtle.fillcolor('black')
turtle.end_fill()
turtle.left(290)
turtle.forward(500)
2020级2班谢宇锋的作品
代码:
import turtle
turtle.screensize(800,600,'blue')
turtle.up()
turtle.goto(0,-300)
turtle.down()
turtle.pensize(5)
turtle.circle(300)
turtle.up()
turtle.goto(-160,250)
turtle.down()
turtle.forward(320)
turtle.right(45)
turtle.forward(120)
turtle.right(45)
turtle.forward(330)
turtle.right(45)
turtle.forward(120)
turtle.right(45)
turtle.forward(320)
turtle.right(45)
turtle.forward(120)
turtle.right(45)
turtle.forward(330)
turtle.right(45)
turtle.forward(120)
turtle.up()
turtle.goto(0,0)
turtle.down()
turtle.color('yellow','red')
turtle.begin_fill()
for i in range(5):
turtle.forward(200)
turtle.left(144)
turtle.end_fill()
turtle.penup()
turtle.goto(-150,-120)
turtle.color('violet')
turtle.write('Hello',font=('Arial',40,'normal'))
2020级4班李甲、范栩铭的作品
代码:
import turtle
turtle.setup(800,600)
turtle.bgcolor("red")
turtle.fillcolor("yellow")
turtle.color('yellow')
turtle.speed(10)
#主星
turtle.begin_fill()
turtle.up()
turtle.goto(-300,170)
turtle.down()
for i in range (5):
turtle.forward(150)
turtle.right(144)
turtle.end_fill()
#第1颗副星
turtle.begin_fill()
turtle.up()
turtle.goto(-100,245)
turtle.setheading(305)
turtle.down()
for i in range (5):
turtle.forward(50)
turtle.left(144)
turtle.end_fill()
#第2颗副星
turtle.begin_fill()
turtle.up()
turtle.goto(-50,172)
turtle.setheading(30)
turtle.down()
for i in range (5):
turtle.forward(50)
turtle.right(144)
turtle.end_fill()
#第3颗副星
turtle.begin_fill()
turtle.up()
turtle.goto(-50,95)
turtle.setheading(5)
turtle.down()
for i in range (5):
turtle.forward(50)
turtle.right(144)
turtle.end_fill()
#第4颗副星
turtle.begin_fill()
turtle.up()
turtle.goto(-100,40)
turtle.setheading(300)
turtle.down()
for i in range (5):
turtle.forward(50)
turtle.left(144)
turtle.end_fill()
2020级2班韩国伟提供的范例
代码:
from turtle import *
def go_to(x, y):
penup()
goto(x, y)
pendown()
def help_do():
go_to(-400, 0)
forward(800)
go_to(-400, 100)
forward(800)
go_to(-400,200)
forward(800)
go_to(-400, -100)
forward(800)
go_to(-400, -200)
forward(800)
left(90)
go_to(0,-300)
forward(600)
go_to(100, -300)
forward(600)
go_to(-100, -300)
forward(600)
go_to(-200, -300)
forward(600)
go_to(200, -300)
forward(600)
def head():
go_to(-200, 180)
fillcolor('yellow')
begin_fill()
seth(-30)
for _ in range(6):
circle(36, 60)
circle(-36, 60)
seth(-125)
for _ in range(5):
circle(40,60)
circle(-40,60)
seth(-210)
for _ in range(4):
circle(45,60)
circle(-45,60)
seth(65)
for _ in range(5):
circle(40,60)
circle(-40,60)
end_fill()
def eye():
# 眼白
go_to(14, -5)
fillcolor('#f0f0f0')
begin_fill()
circle(65, 360)
end_fill()
begin_fill()
go_to(13,12)
seth(98)
circle(-65,360)
end_fill()
#眼球
go_to(-10,20)
fillcolor('blue')
begin_fill()
circle(20,360)
end_fill()
go_to(-22,20)
fillcolor('black')
begin_fill()
circle(7,360)
end_fill()
go_to(40,15)
fillcolor('blue')
begin_fill()
circle(-20, 360)
end_fill()
go_to(53,15)
fillcolor('black')
begin_fill()
circle(-7,360)
end_fill()
#睫毛
go_to(-95,65)
left(20)
forward(40)
go_to(-50,87)
right(25)
forward(32)
go_to(0,70)
right(25)
forward(40)
go_to(40, 75)
left(35)
forward(40)
go_to(90, 87)
right(18)
forward(30)
go_to(120, 70)
right(25)
forward(40)
def nose():
fillcolor('yellow')
go_to(0, -7)
begin_fill()
right(50)
circle(-60, 30)
color('yellow')
goto(15,-40)
end_fill()
color('black')
go_to(0, -7)
seth(-75)
forward(30)
go_to(30,-7)
seth(-105)
forward(30)
def mouth():
go_to(-120, - 60)
seth(-45)
circle(200, 30)
seth(0)
forward(100)
seth(15)
circle(200, 30)
def tooth():
go_to(-30,-114)
seth(-95)
fillcolor('white')
begin_fill()
forward(30)
seth(0)
forward(40)
seth(95)
forward(30)
go_to(-30,-114)
end_fill()
go_to(30, -114)
seth(-95)
fillcolor('white')
begin_fill()
forward(30)
seth(0)
forward(40)
seth(95)
forward(30)
go_to(60, -114)
end_fill()
def hole():
go_to(-160,160)
# fillcolor('#ffd700')
# begin_fill()
circle(30, 360)
# a=1
# for i in range(120):
# if 0<=i<30 or 60<=i<90:
# a=a+0.2
# lt(3)
# forward(a)
# else:
# a=a-0.2
# lt(3)
# forward(a)
# end_fill()
def face():
eye()
nose()
mouth()
tooth()
# hole()
def body():
go_to(-170,-180)
seth(-120)
circle(150, 30)
seth(0)
forward(40)
seth(100)
forward(35)
seth(-80)
forward(100)
fillcolor('brown')
begin_fill()
seth(0)
forward(300)
seth(80)
forward(110)
seth(-100)
forward(65)
seth(180)
forward(315)
go_to(-118,-400)
end_fill()
go_to(-170,-255)
fillcolor('yellow')
begin_fill()
seth(-75)
forward(80)
seth(0)
forward(17)
seth(105)
forward(85)
end_fill()
go_to(200, -170)
seth(-60)
circle(-150,30)
seth(-180)
forward(45)
begin_fill()
seth(0)
forward(20)
seth(-100)
forward(85)
seth(180)
forward(20)
end_fill()
def tie():
go_to(-50,-225)
seth(-40)
forward(40)
seth(30)
forward(52)
go_to(30,-225)
seth(-30)
forward(40)
seth(40)
forward(45)
fillcolor('red')
go_to(0, -240)
begin_fill()
seth(-60)
forward(10)
seth(0)
forward(30)
seth(60)
forward(15)
go_to(30,-225)
end_fill()
go_to(4,-250)
begin_fill()
seth(-100)
forward(80)
seth(0)
forward(55)
seth(100)
forward(80)
end_fill()
def spongeBob():
# help_do()
head()
face()
body()
tie()
if __name__=='__main__':
screensize(800, 600, 'white')
pensize(3)
speed(10)
go_to(0, 0)
spongeBob()
go_to(-100,240)
write('海绵宝宝',font=('BRUSHSCI.TTF', '30', 'bold'))
mainloop()
虽然是海龟绘图入门级内容,但都是孩子们自己灵活运用函数、坐标定位等知识,思考下进行的创作。
联系客服