My Cat Drawing is complete! The cat is ready for more adventures!
//My Cat Drawing
ctx.fillStyle = '#E5A9FF'; //purple color for the cat's fur
ctx.fillRect(0, 0, 512, 512); //drawing a rectangle for the cat's body
//adding the cat's head
ctx.fillStyle = '#FFF1E8'; //white color for the cat's head
ctx.beginPath();
ctx.moveTo(200,150); //starting from the upper left corner of the head
ctx.lineTo(240,150); //drawing the top of the head
ctx.lineTo(280,200); //drawing the right side of the head
ctx.lineTo(240,250); //drawing the bottom of the head
ctx.lineTo(200,250); //drawing the left side of the head
ctx.fill(); //filling in the head
//adding the cat's right ear
ctx.fillStyle = '#E5A9FF'; //purple color for the cat's fur
ctx.beginPath();
ctx.moveTo(240,150); //starting from the top of the head
ctx.lineTo(220,130); //drawing the top of the ear
ctx.lineTo(210,150); //drawing the right side of the ear
ctx.lineTo(220,170); //drawing the bottom of the ear
ctx.fill(); //filling in the ear
//adding the cat's left ear
ctx.fillStyle = '#E5A9FF'; //purple color for the cat's fur
ctx.beginPath();
ctx.moveTo(240,150); //starting from the top of the head
ctx.lineTo(260,130); //drawing the top of the ear
ctx.lineTo(270,150); //drawing the left side of the ear
ctx.lineTo(260,170); //drawing the bottom of the ear
ctx.fill(); //filling in the ear
//adding the cat's nose
ctx.fillStyle = '#D24A5C'; //pink color for the cat's nose
ctx.beginPath();
ctx.moveTo(240,200); //starting from the center of the head
ctx.lineTo(230,210); //drawing the top of the nose
ctx.lineTo(250,210); //drawing the bottom of the nose
ctx.fill(); //filling in the nose
//adding the cat's right eye
ctx.fillStyle = '#2D2D2D'; //black color for the cat's eye
ctx.beginPath();
ctx.arc(225, 160, 10, 0, Math.PI*2); //drawing a circle for the eye
ctx.fill(); //filling in the eye
//adding the cat's left eye
ctx.fillStyle = '#2D2D2D'; //black color for the cat's eye
ctx.beginPath();
ctx.arc(255, 160, 10, 0, Math.PI*2); //drawing a circle for the eye
ctx.fill(); //filling in the eye
//adding the cat's mouth
ctx.fillStyle = '#D24A5C'; //pink color for the cat's nose
ctx.beginPath();
ctx.moveTo(240,210); //starting from the bottom of the nose
ctx.lineTo(230,220); //drawing the left side of the mouth
ctx.lineTo(250,220); //drawing the right side of the mouth
ctx.fill(); //filling in the mouth
//adding the cat's tail
ctx.fillStyle = '#E5A9FF'; //purple color for the cat's fur
ctx.beginPath();
ctx.moveTo(350,250); //starting from the bottom of the tail
ctx.lineTo(370,200); //drawing the upper left side of the tail
ctx.lineTo(350,150); //drawing the upper right side of the tail
ctx.lineTo(330,200); //drawing the bottom of the tail
ctx.fill(); //filling in the tail
//adding the cat's paws
ctx.fillStyle = '#FFF1E8'; //white color for the cat's paws
ctx.beginPath();
ctx.arc(200, 300, 15, 0, Math.PI*2); //drawing a circle for the paw
ctx.fill(); //filling in the paw
ctx.beginPath();
ctx.arc(280, 300, 15, 0, Math.PI*2); //drawing a circle for the paw
ctx.fill(); //filling in the paw
//My Cat Drawing is complete!
//The cat is ready for more adventures!
DrawGPT is a an AI art project that uses the GPT-3 large language model by OpenAI to generate new images from text prompts.
This AI was not trained on any images, only written words.
Using Javacript and HTML programming the AI is able to express itself visually through words by writing code to draw and create unique images. This is the same AI powering the very popular ChatGPT large language model AI.
This uses words to draw pictures. How does this even know what an image is? It only knows words.
Its just very strange compared to many of the other ways artificial intelligence is being used to generated images right now.
This was never trained on any art, or even on any images, everything this AI knows about the world it read in a book.
This makes it a novel and unique way to use AI to create art. It is a bit regressive compared to modern image diffuser models but that is also what makes it fun. It also provides some truly hilarious outputs because the AI has no sense of scale, color, shape, or really anything visual so it makes hilarious things. It also makes beautiful things too, go figure.
DrawGPT can draw anything you can think of and more! Just type your text prompt in to the textbox and see what the AI gives you! Seriously, you can get GPT to draw just about anything for you that you can type in the box.
DrawGPT is runs on an AI that has never see an image in its life!
GPT-3 only knows words. That makes its understanding of the visual world extremely unusual. Typically this AI is not able to draw images.
This method of drawing images using raw code is not a great way to draw complex images like a photograph detailed digital illustation. This makes the images that DrawGPT outputs very simple.
You can see all the commands that DrawGPT uses to draw images in the Commands section.
Yes and no. Same same but different.
ChatGPT runs on the same model that this project uses, but it is a different instance of the model. This means that the AI is not precisly the same but it is the same AI large language model that ChatGPT is using.
What is the difference? ChatGPT is specifically wired up to be conversational and track a conversation thread across multiple user prompts.
In comparison DrawGPT does not remember things from prompt to prompt, each image is a unique image that does not reference any of the images or prompts previously supplied.
Only programmers, and we know they don't count!
Just kidding, I am a programmer.
You can read more about the training sets that OpenAI uses on their website but basically this AI is trained on a huge corpus of text that was cut off around mid-2021.
Once more for the violent weirdos in the back:
This not an image AI it only uses written words.
You can do what you want it's your party.
We humbly ask that you backlink to DrawGPT if you do use our images in any promotion or commercial ways, but it is not required.
At the moment all images & Javascript code generated by this tool under the CC0 License with outrageous added term that the license can be revoked or retroactively changed at any time without warning for any image.
Yes! You can use the images for commercial purposes! And so can DrawGPT.
Images are made public during submission.
Depending on the situation the prompts themselves are stored internally for research purposes but given that people are morons and put things in there like personal information it is unlikely DrawGPT would ever be able to release the raw prompts publicly.
Employees at OpenAI and DrawGPT have access to any prompts you submit.
DO NOT SUBMIT PERSONAL INFORMATION.
This works because add in a lot of tokens to the prompt you supply until it forces GPT-3 to output code in a way that I want.
Then I parse that incoming Javascript code and strip out anything that is not draw commands and then yep... I run the code. You can see the code in the Code section. Any additional commands are not supported, only 2D canvas context draw commands, and comments.
You can copy the code, create a 500x500 canvas, and run the code on your own to regenerate the image.
No.