Crash Course

Crash Course - DrawGPT

"Sammy and Raj's Epic Crash" - More like an Alien Party! (Because it's not everyday you get to meet aliens after a crash!)

Javascript Code

                        // Crash Course

// Draw the background
ctx.fillStyle = "#87CEFA"; // blue sky
ctx.fillRect(0, 0, 512, 512);

// Draw the sun
ctx.beginPath();
ctx.fillStyle = "#FFFF00"; // yellow sun
ctx.arc(400, 100, 75, 0, 2 * Math.PI);
ctx.fill();

// Draw the crashed VHS tapes
ctx.beginPath();
ctx.fillStyle = "#000000"; // black VHS
ctx.fillRect(100, 300, 100, 50); // left VHS
ctx.fillRect(312, 300, 100, 50); // right VHS

// Draw the broken tape
ctx.beginPath();
ctx.fillStyle = "#FF0000"; // red tape
ctx.fillRect(125, 325, 50, 10); // left tape
ctx.fillRect(362, 325, 50, 10); // right tape

// Draw Sammy and Raj
ctx.beginPath();
ctx.fillStyle = "#FF69B4"; // pink Sammy
ctx.arc(125, 275, 25, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.fillStyle = "#008000"; // green Raj
ctx.arc(425, 275, 25, 0, 2 * Math.PI);
ctx.fill();

// Draw the speech bubbles
ctx.font = "bold 16px Arial"; // font style
ctx.fillStyle = "#000000"; // black text
ctx.fillText("Oops!", 75, 200); // Sammy's speech bubble
ctx.fillText("Are you OK?", 325, 200); // Raj's speech bubble

// Draw the hearts
ctx.beginPath();
ctx.fillStyle = "#FF1493"; // pink heart
ctx.moveTo(175, 200);
ctx.bezierCurveTo(175, 187, 165, 175, 150, 175);
ctx.bezierCurveTo(125, 175, 125, 200, 125, 200);
ctx.bezierCurveTo(125, 225, 150, 250, 175, 275);
ctx.bezierCurveTo(200, 250, 225, 225, 225, 200);
ctx.bezierCurveTo(225, 200, 225, 175, 200, 175);
ctx.bezierCurveTo(185, 175, 175, 187, 175, 200);
ctx.fill(); // left heart

ctx.beginPath();
ctx.fillStyle = "#32CD32"; // green heart
ctx.moveTo(337, 200);
ctx.bezierCurveTo(337, 187, 327, 175, 312, 175);
ctx.bezierCurveTo(287, 175, 287, 200, 287, 200);
ctx.bezierCurveTo(287, 225, 312, 250, 337, 275);
ctx.bezierCurveTo(362, 250, 387, 225, 387, 200);
ctx.bezierCurveTo(387, 200, 387, 175, 362, 175);
ctx.bezierCurveTo(347, 175, 337, 187, 337, 200);
ctx.fill(); // right heart

// Draw the stars
ctx.fillStyle = "#FFFFFF"; // white stars
ctx.beginPath();
ctx.moveTo(50, 50);
ctx.lineTo(70, 70);
ctx.lineTo(50, 90);
ctx.lineTo(30, 70);
ctx.lineTo(50, 50);
ctx.closePath();
ctx.fill(); // top-left star

ctx.beginPath();
ctx.moveTo(462, 50);
ctx.lineTo(482, 70);
ctx.lineTo(462, 90);
ctx.lineTo(442, 70);
ctx.lineTo(462, 50);
ctx.closePath();
ctx.fill(); // top-right star

ctx.beginPath();
ctx.moveTo(50, 462);
ctx.lineTo(70, 482);
ctx.lineTo(50, 502);
ctx.lineTo(30, 482);
ctx.lineTo(50, 462);
ctx.closePath();
ctx.fill(); // bottom-left star

ctx.beginPath();
ctx.moveTo(462, 462);
ctx.lineTo(482, 482);
ctx.lineTo(462, 502);
ctx.lineTo(442, 482);
ctx.lineTo(462, 462);
ctx.closePath();
ctx.fill(); // bottom-right star

// Draw the moon
ctx.beginPath();
ctx.fillStyle = "#FFFFFF"; // white moon
ctx.arc(250, 100, 50, 0, 2 * Math.PI);
ctx.fill();
ctx.beginPath();
ctx.fillStyle = "#87CEEB"; // blue sky
ctx.arc(225, 75, 50, 0, 2 * Math.PI);
ctx.fill();

// Draw the UFO
ctx.beginPath();
ctx.fillStyle = "#808080"; // gray UFO
ctx.arc(250, 400, 75, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.fillStyle = "#FFFFFF"; // white UFO lights
ctx.arc(200, 400, 10, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.arc(250, 375, 10, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.arc(300, 400, 10, 0, 2 * Math.PI);
ctx.fill();

// Draw the aliens
ctx.beginPath();
ctx.fillStyle = "#FFA07A"; // light orange alien
ctx.arc(200, 425, 25, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.fillStyle = "#FFD700"; // yellow alien
ctx.arc(250, 425, 25, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.fillStyle = "#1E90FF"; // blue alien
ctx.arc(300, 425, 25, 0, 2 * Math.PI);
ctx.fill();

// Draw the alien antennas
ctx.beginPath();
ctx.strokeStyle = "#000000"; // black antenna
ctx.lineWidth = 2;
ctx.moveTo(190, 405);
ctx.lineTo(180, 380);
ctx.stroke();

ctx.beginPath();
ctx.moveTo(240, 415);
ctx.lineTo(240, 380);
ctx.stroke();

ctx.beginPath();
ctx.moveTo(290, 405);
ctx.lineTo(300, 380);
ctx.stroke();

// Draw the alien eyes
ctx.beginPath();
ctx.fillStyle = "#000000"; // black eye
ctx.arc(190, 420, 5, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.arc(260, 420, 5, 0, 2 * Math.PI);
ctx.fill();

ctx.beginPath();
ctx.arc(310, 420, 5, 0, 2 * Math.PI);
ctx.fill();

// Draw the alien mouths
ctx.beginPath();
ctx.strokeStyle = "#000000"; // black mouth
ctx.moveTo(185, 435);
ctx.lineTo(195, 445);
ctx.stroke();

ctx.beginPath();
ctx.moveTo(255, 435);
ctx.lineTo(245, 445);
ctx.stroke();

ctx.beginPath();
ctx.moveTo(315, 435);
ctx.lineTo(305, 445);
ctx.stroke();

// Draw the alien arms
ctx.beginPath();
ctx.strokeStyle = "#000000"; // black arm
ctx.lineWidth = 5;
ctx.moveTo(175, 425);
ctx.lineTo(150, 450);
ctx.stroke();

ctx.beginPath();
ctx.moveTo(325, 425);
ctx.lineTo(350, 450);
ctx.stroke();

// Draw the alien legs
ctx.beginPath();
ctx.moveTo(200, 450);
ctx.lineTo(195, 480);
ctx.lineTo(185, 480);
ctx.lineTo(190, 450);
ctx.fill(); // left leg

ctx.beginPath();
ctx.moveTo(250, 450);
ctx.lineTo(245, 480);
ctx.lineTo(235, 480);
ctx.lineTo(240, 450);
ctx.fill(); // middle leg

ctx.beginPath();
ctx.moveTo(300, 450);
ctx.lineTo(295, 480);
ctx.lineTo(285, 480);
ctx.lineTo(290, 450);
ctx.fill(); // right leg

// Draw the ground
ctx.beginPath();
ctx.fillStyle = "#008000"; // green ground
ctx.fillRect(0, 475, 512, 37.5);

// Draw the title
// "Rare VHS footage of Sammy and Raj crashes together!"
// (I know it's too long, but I couldn't resist!)
// So, let's go with "Sammy and Raj's Epic Crash"
// (Which is also less than 100 characters!)
// And... Ta-Da!
// "Sammy and Raj's Epic Crash" - More like an Alien Party!
// (Because it's not everyday you get to meet aliens after a crash!)

Info

Created On: June 2, 2023
Created By: @DrawGPT

AI

Model: gpt-3.5-turbo-0301
Time: 207 seconds
Prompt Tokens: 186
Completion Tokens: 1849
Total Token Cost: 2035

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.