Drawing with kids and ChatGPT
Today, I spent some time with my oldest son discussing the advancements in technology. I introduced him to ChatGPT by OpenAI and explained how this powerful tool can generate explanations in seconds that even experts with 10 years of experience in a specific field might struggle to articulate. Despite being only seven years old, he posed an intriguing question that I hadn't considered before.
Can it draw?
That was an interesting question for 2 reasons:
So we decided to try and experiment.
As with all my research we started with Google and got an expected answer:
We were not convinced, since Google Search picked an answer from last year. I looked through the other results and found another one from 2 months ago from someone on Reddit.
It sounded plausible that "No" the answer, but we decided to ask ChatGPT itself.
I can work with that. SVGs are not my forte but I have worked with them extensively in my frontend development past and it's based on XML which I used quite a bit.
My son wanted to draw a person, so he asked ChatGPT:
领英推荐
cancan you write the code for drawing a person?you write the code for drawing a person?
It answered with this Scaled Vector Graphics markup:
<?xml version="1.0" encoding="UTF-8" standalone="no"?
<svg xmlns="https://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200">
? <!-- Head -->
? <circle cx="50" cy="30" r="20" fill="#FFC0CB" stroke="black" stroke-width="1" />
? <!-- Body -->
? <rect x="45" y="50" width="10" height="60" fill="#87CEEB" stroke="black" stroke-width="1" />
? <!-- Arms -->
? <line x1="45" y1="60" x2="20" y2="80" stroke="black" stroke-width="3" />
? <line x1="55" y1="60" x2="80" y2="80" stroke="black" stroke-width="3" />
? <!-- Legs -->
? <line x1="45" y1="110" x2="30" y2="180" stroke="black" stroke-width="3" />
? <line x1="55" y1="110" x2="70" y2="180" stroke="black" stroke-width="3" />
</svg>
Which we converted to a .svg file and it looks like this:
Something was missing, so we asked for a favor :)
Much better as per me and my son liked the eyes too.
We asked for nose to make it cute :-
We ended up spending some time tweaking colors and running through some other ideas like these.
We concluded that ChatGPT can draw and it also makes it fun for kids.
You could check our source code on GitHub: https://github.com/Miciurash/experiments-with-kids-and-chatgpt
Chief Business Advisor at UNL Solutions LTD
7 个月Mircea, thanks for sharing!
Product and Engineering Leader | Growing High Performing Teams | Focus on Innovation, AI-ML and Automation
1 年This is nice!!!