// Pig in Hay
// Creating the hay
ctx.fillStyle = "#E5C100"; // Setting the color of the hay
ctx.fillRect(0, 0, 512, 512); // Drawing a rectangle for the hay
// Creating the pig
ctx.fillStyle = "#FFB6C1"; // Setting the color of the pig
ctx.beginPath();
ctx.arc(256, 256, 100, 0, Math.PI * 2); // Drawing the body of the pig
ctx.fill();
// Creating the pig's face
ctx.fillStyle = "#000000"; // Setting the color of the pig's face
ctx.beginPath();
ctx.arc(216, 216, 20, 0, Math.PI * 2); // Drawing the left eye
ctx.fill();
ctx.beginPath();
ctx.arc(296, 216, 20, 0, Math.PI * 2); // Drawing the right eye
ctx.fill();
ctx.beginPath();
ctx.arc(256, 276, 30, Math.PI / 8, (Math.PI * 7) / 8); // Drawing the snout
ctx.fill();
// Adding details to the pig's face
ctx.fillStyle = "#FFB6C1"; // Setting the color of the pig's face details
ctx.beginPath();
ctx.arc(244, 216, 5, 0, Math.PI * 2); // Drawing the left eye highlight
ctx.fill();
ctx.beginPath();
ctx.arc(276, 216, 5, 0, Math.PI * 2); // Drawing the right eye highlight
ctx.fill();
// Adding the pig's ears
ctx.fillStyle = "#FFB6C1"; // Setting the color of the pig's ears
ctx.beginPath();
ctx.arc(186, 186, 30, Math.PI / 4, (Math.PI * 3) / 4); // Drawing the left ear
ctx.fill();
ctx.beginPath();
ctx.arc(326, 186, 30, (Math.PI * 5) / 4, (Math.PI * 7) / 4); // Drawing the right ear
ctx.fill();
// Adding the pig's tail
ctx.strokeStyle = "#FFB6C1"; // Setting the color of the pig's tail
ctx.lineWidth = 5; // Setting the width of the tail
ctx.beginPath();
ctx.moveTo(356, 256); // Moving the starting point of the tail
ctx.lineTo(406, 316); // Drawing a line for the tail
ctx.stroke();
// Adding the pig's legs
ctx.fillStyle = "#FFB6C1"; // Setting the color of the pig's legs
ctx.fillRect(186, 356, 40, 100); // Drawing the left front leg
ctx.fillRect(286, 356, 40, 100); // Drawing the right front leg
ctx.fillRect(156, 456, 40, 100); // Drawing the left back leg
ctx.fillRect(336, 456, 40, 100); // Drawing the right back leg
// Adding the pig's hooves
ctx.fillStyle = "#000000"; // Setting the color of the pig's hooves
ctx.fillRect(176, 556, 60, 20); // Drawing the left front hoof
ctx.fillRect(276, 556, 60, 20); // Drawing the right front hoof
ctx.fillRect(146, 656, 60, 20); // Drawing the left back hoof
ctx.fillRect(326, 656, 60, 20); // Drawing the right back hoof
// Adding the pig's nose
ctx.fillStyle = "#FFB6C1"; // Setting the color of the pig's nose
ctx.beginPath();
ctx.arc(256, 276, 15, 0, Math.PI * 2); // Drawing the nose
ctx.fill();
// Adding the pig's nostrils
ctx.fillStyle = "#000000"; // Setting the color of the pig's nostrils
ctx.beginPath();
ctx.arc(246, 276, 3, 0, Math.PI * 2); // Drawing the left nostril
ctx.fill();
ctx.beginPath();
ctx.arc(266, 276, 3, 0, Math.PI * 2); // Drawing the right nostril
ctx.fill();
// Adding the pig's mouth
ctx.strokeStyle = "#000000"; // Setting the color of the pig's mouth
ctx.lineWidth = 2; // Setting the width of the mouth
ctx.beginPath();
ctx.arc(256, 286, 15, 0, Math.PI); // Drawing the mouth
ctx.stroke();
// Adding the pig's teeth
ctx.fillStyle = "#FFFFFF"; // Setting the color of the pig's teeth
ctx.fillRect(243, 276, 4, 7); // Drawing the left tooth
ctx.fillRect(252, 276, 4, 7); // Drawing the middle tooth
ctx.fillRect(261, 276, 4, 7); // Drawing the right tooth
// Adding the pig's tusks
ctx.strokeStyle = "#FFFFFF"; // Setting the color of the pig's tusks
ctx.lineWidth = 3; // Setting the width of the tusks
// Drawing the left tusk
ctx.beginPath();
ctx.moveTo(231, 286); // Moving the starting point of the left tusk
ctx.lineTo(236, 296); // Drawing a line for the left tusk
ctx.stroke();
ctx.beginPath();
ctx.moveTo(236, 296); // Moving the starting point of the left tusk (continued)
ctx.lineTo(241, 286); // Drawing a line for the left tusk (continued)
ctx.stroke();
// Drawing the right tusk
ctx.beginPath();
ctx.moveTo(281, 286); // Moving the starting point of the right tusk
ctx.lineTo(276, 296); // Drawing a line for the right tusk
ctx.stroke();
ctx.beginPath();
ctx.moveTo(276, 296); // Moving the starting point of the right tusk (continued)
ctx.lineTo(271, 286); // Drawing a line for the right tusk (continued)
ctx.stroke();
// Adding the pig's smile
ctx.strokeStyle = "#FFB6C1"; // Setting the color of the pig's smile
ctx.lineWidth = 2; // Setting the width of the smile
ctx.beginPath();
ctx.arc(256, 296, 10, 0, Math.PI); // Drawing the smile
ctx.stroke();
// Adding the pig's blush
ctx.fillStyle = "#FF69B4"; // Setting the color of the pig's blush
ctx.beginPath();
ctx.arc(226, 266, 10, 0, Math.PI * 2); // Drawing the left blush
ctx.fill();
ctx.beginPath();
ctx.arc(286, 266, 10, 0, Math.PI * 2); // Drawing the right blush
ctx.fill();
// Adding some finishing touches to the hay
ctx.fillStyle = "#DAA520"; // Setting the color of the highlights in the hay
ctx.beginPath();
ctx.arc(80, 100, 15, 0, Math.PI * 2); // Drawing a highlight in the hay
ctx.fill();
ctx.beginPath();
ctx.arc(150, 150, 20, 0, Math.PI * 2); // Drawing a highlight in the hay
ctx.fill();
ctx.beginPath();
ctx.arc(400, 200, 15, 0, Math.PI * 2); // Drawing a highlight in the hay
ctx.fill();
ctx.beginPath();
ctx.arc(450, 250, 20, 0, Math.PI * 2); // Drawing a highlight in the hay
ctx.fill();
// Voila! A pig in hay!
// Pigs in hay, better than pigs in a blanket!
These are recent AI images made by the community! These may use any AI model including DALL-E 3, Flux, Stable Diffusion, GPT-4, o1, and more and may be anything from simple animated SVGs to PNGs.
DrawGPT is a an AI art generator that uses GPT-4, o1, o3, DALL-E 3, Gemini 2.0, Imagegen 3.0, Flux, Stable Diffusion, and Custom GPTs, ChatGPT, and other large language models to generate new images from text prompts.
This does not require access to premium AI model subscriptions, it is able to be used by anyone with an internet connection and tokens. This allows everyone to get access to the very best AI art generation technology.
Artificial intelligence may create strange or unusual images. It is being used to generated images for advertising, entertainment, gaming, marketing, and fun right now!
Because Draw GPT has access to do many models we assume the model providers have followed best practices when attributing or utilizing data and images in the training data.
Yes! You can use the images for commercial purposes! And so can Draw GPT.
DrawGPT can draw anything you can think of and more! Just type your text prompt in to the textbox exactly like ChatGPT 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 creates images in PNG, SVG, and Javascript format for download and use. This is different than other AI art projects that only create images in PNG format; being able to get a scene graph via Javascript draw commands is a unique feature of this project and getting any AI art in SVG vector format is unique to DrawGPT.
Many people use this to generate quick art for simple projects, video game assets, new business logos, and more. It is also used to generate images for advertising, entertainment, gaming, marketing, creating art for ads and blog posts with AI and fun.
Want to learn more about DrawGPT, the types of possible image renders, and how to use DrawGPT in your next project as a developer?
Check out our AI image generation API!
DrawGPT is runs on an AI that has never actually "seen" an image as embodied AI in its life!
This method of drawing images using raw code is not a great way to draw complex images with lots of structure. It may be able to make photograph quality artwork and professional illustrations with AI but it can fail when using certain types of typography.
Yes and no. Same same but different.
ChatGPT runs on the same model that this project uses, so this is like using ChatGPT to generate images, but it is a different instance of the model. This means that the AI is not precisly the same but it is the same quality AI, image generation AI, large language model, and overall AI art that ChatGPT is using and that Chat GPT can draw.
What is the difference? ChatGPT is specifically wired up to be conversational and track a conversation thread across multiple user prompts. Images in ChatGPT using DALL-E 3 are not saved to the Intenet and made available publicly.
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.
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 & prompts may be made made public.
Depending on the situation the prompts themselves are stored internally for research purposes.
Employees at OpenAI and DrawGPT have access to any prompts you submit.
DO NOT SUBMIT PERSONAL INFORMATION.