
CircuitPython turtle rainbow benzene
Channel:
Subscribers:
460,000
Published on ● Video Link: https://www.youtube.com/watch?v=jYSM6apP3vY
import board
import time
from Adafruit_CircuitPython_turtle.adafruit_turtle import *
turtle = turtle(board.DISPLAY)
benzsize = min(board.DISPLAY.width, board.DISPLAY.height) * 0.5
print("Turtle time! Lets draw a rainbow benzene")
colors = (Color.RED, Color.ORANGE, Color.YELLOW, Color.GREEN, Color.BLUE, Color.PURPLE)
while True:
turtle.pendown()
for x in range(benzsize):
turtle.pencolor(colors[x%6])
turtle.forward(x)
turtle.left(59)
time.sleep(1)
turtle.penup()
turtle.home()
turtle.clear()
#circuitpython #madewithmu #turtle
Other Videos By Adafruit Industries
Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
pi
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM
python
microbit
circuitpython
neopixel
neopixels
raspberry pi
circuitplaygound
nyc
make
makers
micro:bit
adafrit
adafruit promo code
ada fruit
adafruit coupons
raspberry pi zero
micropython