Draw Iraq on a 512 x 512 Canvas

Draw Iraq on a 512 x 512 Canvas - DrawGPT

Draw Iraq: A Land of Love and Peace! :D

Javascript Code

                        // Draw Iraq on a 512 x 512 Canvas
ctx.fillStyle = "#F7E4B4"; // paint background of canvas
ctx.fillRect(0, 0, 512, 512); // fill the canvas

// draw the flag of Iraq
ctx.fillStyle = "#009900"; // use green to fill the flag
ctx.fillRect(0, 0, 512, 256); // fill the top half of the flag
ctx.fillStyle = "#FF0000"; // use red to fill the flag
ctx.fillRect(0, 256, 512, 256); // fill the bottom half of the flag

// draw a crescent moon
ctx.beginPath(); // start drawing a shape
ctx.moveTo(30, 60); // move to the top left corner of the moon
ctx.lineTo(60, 90); // draw a line to the middle of the moon
ctx.lineTo(90, 60); // draw a line to the top right corner of the moon
ctx.lineTo(120, 90); // draw a line to the bottom right corner of the moon
ctx.lineTo(150, 60); // draw a line to the middle of the moon
ctx.fillStyle = "#FFFFFF"; // use white to fill the moon
ctx.fill(); // fill the moon

// draw stars
ctx.fillStyle = "#FFFFFF"; // use white to draw stars
ctx.fillRect(45, 30, 30, 30); // draw a star
ctx.fillRect(105, 30, 30, 30); // draw a star
ctx.fillRect(165, 30, 30, 30); // draw a star
ctx.fillRect(225, 30, 30, 30); // draw a star
ctx.fillRect(285, 30, 30, 30); // draw a star
ctx.fillRect(345, 30, 30, 30); // draw a star
ctx.fillRect(405, 30, 30, 30); // draw a star
ctx.fillRect(465, 30, 30, 30); // draw a star

// draw Iraq text
ctx.font = "30px Arial"; // use 30 pixel Arial font
ctx.fillStyle = "#000000"; // use black to fill Iraq text
ctx.fillText("Iraq", 200, 460); // write Iraq

// Draw a picture of peace and prosperity in Iraq
ctx.fillStyle = "#6ABCF1"; // use a light blue to draw the sky
ctx.fillRect(0, 0, 512, 256); // fill the top half of the canvas for the sky
ctx.fillStyle = "#4F6F4E"; // use a dark green to draw the land
ctx.fillRect(0, 256, 512, 256); // fill the bottom half of the canvas for the land

// draw a river
ctx.fillStyle = "#5CD5F5"; // use light blue to fill the river
ctx.fillRect(0, 256, 512, 16); // fill the river

// draw a sun
ctx.beginPath(); // start drawing a shape
ctx.moveTo(300, 90); // move to the top left corner of the sun
ctx.lineTo(330, 120); // draw a line to the middle of the sun
ctx.lineTo(360, 90); // draw a line to the top right corner of the sun
ctx.lineTo(390, 120); // draw a line to the bottom right corner of the sun
ctx.lineTo(420, 90); // draw a line to the middle of the sun
ctx.fillStyle = "#FFD700"; // use yellow to fill the sun
ctx.fill(); // fill the sun

// draw a tree
ctx.fillStyle = "#3B3B3B"; // use black to draw the tree trunk
ctx.fillRect(75, 325, 15, 100); // draw the tree trunk
ctx.beginPath(); // start drawing a shape
ctx.moveTo(50, 300); // move to the top left corner of the tree
ctx.lineTo(100, 300); // draw a line to the top right corner of the tree
ctx.lineTo(75, 250); // draw a line to the bottom of the tree
ctx.fillStyle = "#009900"; // use green to fill the tree
ctx.fill(); // fill the tree

// Draw a picture of togetherness
ctx.fillStyle = "#FFFACD"; // use a light yellow to draw the background
ctx.fillRect(0, 0, 512, 512); // fill the canvas

// draw smiling faces
ctx.fillStyle = "#FFA07A"; // use a light orange to draw the head
ctx.fillRect(105, 200, 30, 30); // draw the head of the first face
ctx.fillRect(235, 200, 30, 30); // draw the head of the second face
ctx.fillStyle = "#FF6347"; // use a darker orange to draw the cheeks
ctx.fillRect(115, 210, 10, 10); // draw the left cheek of the first face
ctx.fillRect(145, 210, 10, 10); // draw the right cheek of the first face
ctx.fillRect(245, 210, 10, 10); // draw the left cheek of the second face
ctx.fillRect(275, 210, 10, 10); // draw the right cheek of the second face
ctx.fillStyle = "#000000"; // use black to draw the eyes and mouth
ctx.fillRect(120, 205, 5, 5); // draw the left eye of the first face
ctx.fillRect(140, 205, 5, 5); // draw the right eye of the first face
ctx.fillRect(250, 205, 5, 5); // draw the left eye of the second face
ctx.fillRect(270, 205, 5, 5); // draw the right eye of the second face
ctx.fillRect(130, 220, 10, 5); // draw the mouth of the first face
ctx.fillRect(260, 220, 10, 5); // draw the mouth of the second face

// draw a heart
ctx.beginPath(); // start drawing a shape
ctx.moveTo(200, 290); // move to the top left corner of the heart
ctx.lineTo(230, 320); // draw a line to the bottom of the heart
ctx.lineTo(260, 290); // draw a line to the top right corner of the heart
ctx.quadraticCurveTo(230, 270, 200, 290); // draw a curve to the top left corner of the heart
ctx.fillStyle = "#FF0000"; // use red to fill the heart
ctx.fill(); // fill the heart

// Draw Iraq: A Land of Love and Peace! :D

Info

Created On: March 28, 2023
Created By: @DrawGPT

AI

Model: text-davinci-003
Time: 46 seconds
Prompt Tokens: 117
Completion Tokens: 1487
Total Token Cost: 1604

NEW AI IMAGES


These are recent AI images made by the community!

FAQ

What is DrawGPT?

DrawGPT is a an AI art generator that uses the GPT-3, GPT-4, DALL-E 3, Custom GPTs, ChatGPT, and other large language models by OpenAI to generate new images from text prompts.

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.

Why Is This Different?

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.

What Can DrawGPT Draw?

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!

Why Are They Weird?

DrawGPT is runs on an AI that has never actually "seen" an image as embodied AI in its life!

GPT-3, GPT-4, ChatGPT, and DALL-E 3 only allow input from words. Even GPT-4V which uses image recogintion via AI converts the output to words for use with other AI models. That makes their understanding of the visual world extremely unusual. This AI is able to draw images just like ChatGPT can draw images.

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.

Is This ChatGPT?

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.

Copyright

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 Private

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.

Is This AI Sentient? Will It End Us?

No.