Take your watercolor artistry to new heights with the Winsor & Newton Cotman Watercolor Paint Set, now available for only $61.82, a fantastic 46% off its original price! With over 7,971 ratings and a 4.7-star average, this set, which includes 45 vibrant half pans, is a must-have for both beginners and experienced artists.
Whether you’re working on landscapes, portraits, or abstract creations, the professional-grade pigments provide rich, lasting color that brings your work to life. Don’t miss out, order now for only $61.82 at Amazon!
Help Power Techcratic’s Future – Scan To Support
If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.
As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!
BITCOIN bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge Scan the QR code with your crypto wallet app |
DOGECOIN D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA Scan the QR code with your crypto wallet app |
ETHEREUM 0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a Scan the QR code with your crypto wallet app |
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.
Why did you do "from turtle import *" (everything), but with random, you just imported everything directly with "import random"
you can litterally create nft art with this. Damn
Thanks a lot for this video!
Also here is a little piece of code i added myself for the random color part.
This code is to make the color random, but the background is dark and pen color is light
add 'from colorsys import hsv_to_rgb' at the top. its a default module.
Then add this code:
for the set theme:
bgcolor = hsv_to_rgb(random.random(), 0.5, 0.4)
fgcolor = hsv_to_rgb(random.random(), 0.4, 1)
set_theme(canvas_height=1000, canvas_width=1000, canvas_color=bgcolor, pen_color=fgcolor)
if you want non-contrasting colors, you can use this for the bgcolor and fgcolor variable:
hue = random.random()
bgcolor = hsv_to_rgb(hue, 0.5, 0.4)
fgcolor = hsv_to_rgb(hue, 0.3, 1)
if you are not using the function, then do this
bgcolor(bgcolor)
color(fgcolor)
Thanks man, as a master student, I am going to add similar version of this to my thesis. I will list you in reference
Hi, what made you chose Python?
why does python say i don't have theme module?
An amateur question, but how do we save these as PNGs?
Amazing tutorials! I do have one issue though; when I add noise (at any amount) it throws my tree into a spiral situation. Too much ‘push’, the code is the same
thank you again for this very fun one , around 90° angle pattern make sort of a town map , lol , fractal ftw
only getting single line. code seems they same.
from turtle import *
from theme import set_theme
import random
def grow(length, decrease, angle, noise=0):
if length > 10:
forward(length)
new_length = length * decrease
angle_l = angle
angle_r = angle
left(angle_l)
grow(new_length, decrease, angle, noise)
right(angle_l)
left(angle_r)
grow(new_length, decrease, angle, noise)
right(angle_r)
backward(length)
set_theme()
penup()
goto(0,-400)
pendown()
left(90)
grow(200, 0.8, 30)
tracer(True)
exitonclick()
PLEASE HELP
This is awesome. Thanks for sharing your knowledge. Now I know coding can be fun!