六角星
Posted ainimiao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了六角星相关的知识,希望对你有一定的参考价值。
import turtle
turtle.setup(650,350,200,200)
turtle.penup()
turtle.pensize(1)
turtle.pencolor("red")
turtle.fillcolor("yellow")
turtle.fd(100)
turtle.seth(30)
turtle.pendown()
turtle.begin_fill()
turtle.fd(80)
turtle.seth(-90)
turtle.fd(80)
turtle.seth(150)
turtle.fd(80)
turtle.end_fill()
turtle.penup()
turtle.seth(30)
turtle.fd(80/3)
turtle.seth(90)
turtle.fd(80/3)
turtle.pendown()
turtle.begin_fill()
turtle.seth(-30)
turtle.fd(80)
turtle.seth(-150)
turtle.fd(80)
turtle.seth(90)
turtle.fd(80)
turtle.end_fill()
turtle.penup()
turtle.pensize(1)
turtle.pencolor("red")
turtle.fillcolor("yellow")
turtle.fd(100)
turtle.seth(30)
turtle.pendown()
turtle.begin_fill()
turtle.fd(80)
turtle.seth(-90)
turtle.fd(80)
turtle.seth(150)
turtle.fd(80)
turtle.end_fill()
turtle.penup()
turtle.seth(30)
turtle.fd(80/3)
turtle.seth(90)
turtle.fd(80/3)
turtle.pendown()
turtle.begin_fill()
turtle.seth(-30)
turtle.fd(80)
turtle.seth(-150)
turtle.fd(80)
turtle.seth(90)
turtle.fd(80)
turtle.end_fill()
以上是关于六角星的主要内容,如果未能解决你的问题,请参考以下文章
R语言使用hexSticker包将本地图片(image file)转换为六角图(六角贴六角形贴纸local image to hex sticker)
R语言使用hexSticker包将lattice包可视化的结果转换为六角图(六角贴六角形贴纸lattice plot to hex sticker)