A Cat's Thoughts on Distant Stars

A Cat's Thoughts on Distant Stars - DrawGPT

...

Javascript Code

                        // "A Cat's Thoughts on Distant Stars"
ctx.fillStyle = "#000000"; // setting background color to black
ctx.fillRect(0, 0, 512, 512); // drawing black rectangle as background

//Drawing cat
ctx.fillStyle = "#DAA520"; // setting cat's fur color to golden
ctx.beginPath(); // starting to draw cat's body
ctx.arc(256, 350, 100, 0, Math.PI * 2); // drawing cat's body
ctx.fill(); // filling cat's body
ctx.closePath(); // closing the path

ctx.fillStyle = "#FFFFFF"; // setting cat's eye color to white
ctx.beginPath(); // starting to draw cat's eye
ctx.arc(220, 320, 20, 0, Math.PI * 2); // drawing cat's eye
ctx.fill(); // filling cat's eye
ctx.closePath(); // closing the path

ctx.fillStyle = "#FFA07A"; // setting cat's nose color to light coral
ctx.beginPath(); // starting to draw cat's nose
ctx.arc(256, 360, 10, 0, Math.PI * 2); // drawing cat's nose
ctx.fill(); // filling cat's nose
ctx.closePath(); // closing the path

ctx.fillStyle = "#000000"; // setting cat's pupil color to black
ctx.beginPath(); // starting to draw cat's pupil
ctx.arc(220, 320, 10, 0, Math.PI * 2); // drawing cat's pupil
ctx.fill(); // filling cat's pupil
ctx.closePath(); // closing the path

//Drawing spaceship window
ctx.fillStyle = "#ADD8E6"; // setting spaceship window color to light blue
ctx.fillRect(200, 100, 112, 200); // drawing spaceship window

//Drawing stars
ctx.fillStyle = "#FFFFFF"; // setting stars color to white
ctx.beginPath(); // starting to draw stars
ctx.arc(100, 50, 2, 0, Math.PI * 2); // drawing star 1
ctx.arc(200, 150, 3, 0, Math.PI * 2); // drawing star 2
ctx.arc(400, 200, 4, 0, Math.PI * 2); // drawing star 3
ctx.arc(450, 100, 2, 0, Math.PI * 2); // drawing star 4
ctx.fill(); // filling stars
ctx.closePath(); // closing the path

//Drawing thought bubble
ctx.fillStyle = "#FFFFFF"; // setting thought bubble color to white
ctx.beginPath(); // starting to draw thought bubble border
ctx.arc(350, 50, 80, 0, Math.PI * 2); // drawing thought bubble border
ctx.stroke(); // stroking thought bubble border
ctx.closePath(); // closing the path

ctx.font = "20px Arial"; // setting font and size for text
ctx.fillText("What lies beyond?", 260, 30); // adding text to thought bubble

//Drawing distant stars
ctx.fillStyle = "#FFFFFF"; // setting distant stars color to white
ctx.beginPath(); // starting to draw distant stars
ctx.arc(50, 400, 1, 0, Math.PI * 2); // drawing distant star 1
ctx.arc(150, 300, 1, 0, Math.PI * 2); // drawing distant star 2
ctx.arc(250, 450, 1, 0, Math.PI * 2); // drawing distant star 3
ctx.arc(350, 350, 1, 0, Math.PI * 2); // drawing distant star 4
ctx.arc(450, 450, 1, 0, Math.PI * 2); // drawing distant star 5
ctx.fill(); // filling distant stars
ctx.closePath(); // closing the path

//Drawing spaceship
ctx.fillStyle = "#D3D3D3"; // setting spaceship color to light grey
ctx.beginPath(); // starting to draw spaceship
ctx.moveTo(200, 300); // starting point for spaceship
ctx.lineTo(312, 300); // drawing spaceship upper line
ctx.lineTo(350, 350); // drawing spaceship right line
ctx.lineTo(312, 400); // drawing spaceship lower line
ctx.lineTo(200, 400); // drawing spaceship left line
ctx.lineTo(238, 350); // drawing spaceship top line
ctx.fill(); // filling spaceship
ctx.closePath(); // closing the path

//Drawing cat's paw
ctx.fillStyle = "#DAA520"; // setting cat's paw color to golden
ctx.beginPath(); // starting to draw cat's paw
ctx.arc(256, 435, 30, 0, Math.PI * 2); // drawing cat's paw
ctx.fill(); // filling cat's paw
ctx.closePath(); // closing the path

//Drawing cat's claw
ctx.fillStyle = "#FFA07A"; // setting cat's claw color to light coral
ctx.beginPath(); // starting to draw cat's claw
ctx.arc(256, 475, 10, 0, Math.PI * 2); // drawing cat's claw
ctx.fill(); // filling cat's claw
ctx.closePath(); // closing the path

//Drawing cat's other paw
ctx.fillStyle = "#DAA520"; // setting cat's other paw color to golden
ctx.beginPath(); // starting to draw cat's other paw
ctx.arc(156, 435, 30, 0, Math.PI * 2); // drawing cat's other paw
ctx.fill(); // filling cat's other paw
ctx.closePath(); // closing the path

//Drawing cat's other claw
ctx.fillStyle = "#FFA07A"; // setting cat's other claw color to light coral
ctx.beginPath(); // starting to draw cat's other claw
ctx.arc(156, 475, 10, 0, Math.PI * 2); // drawing cat's other claw
ctx.fill(); // filling cat's other claw
ctx.closePath(); // closing the path

//Drawing cat's tail
ctx.strokeStyle = "#DAA520"; // setting cat's tail color to golden
ctx.lineWidth = 20; // setting line width for cat's tail
ctx.beginPath(); // starting to draw cat's tail
ctx.moveTo(356, 350); // starting point for cat's tail
ctx.lineTo(450, 200); // drawing cat's tail
ctx.stroke(); // stroking cat's tail
ctx.closePath(); // closing the path

//Drawing cat's whiskers
ctx.strokeStyle = "#FFFFFF"; // setting cat's whiskers color to white
ctx.beginPath(); // starting to draw cat's whiskers
ctx.moveTo(210, 335); // starting point for cat's whiskers
ctx.lineTo(170, 320); // drawing cat's whisker 1
ctx.moveTo(210, 335); // starting point for cat's whiskers
ctx.lineTo(170, 340); // drawing cat's whisker 2
ctx.moveTo(210, 335); // starting point for cat's whiskers
ctx.lineTo(170, 360); // drawing cat's whisker 3
ctx.stroke(); // stroking cat's whiskers
ctx.closePath(); // closing the path

//Drawing cat's mouth
ctx.strokeStyle = "#FFA07A"; // setting cat's mouth color to light coral
ctx.beginPath(); // starting to draw cat's mouth
ctx.moveTo(230, 365); // starting point for cat's mouth
ctx.lineTo(230, 395); // drawing cat's mouth
ctx.stroke(); // stroking cat's mouth
ctx.closePath(); // closing the path

//Drawing cat's ear
ctx.fillStyle = "#DAA520"; // setting cat's ear color to golden
ctx.beginPath(); // starting to draw cat's ear
ctx.moveTo(190, 270); // starting point for cat's ear
ctx.lineTo(220, 250); // drawing cat's ear upper line
ctx.lineTo(220, 290); // drawing cat's ear lower line
ctx.fill(); // filling cat's ear
ctx.closePath(); // closing the path

//Drawing cat's other ear
ctx.fillStyle = "#DAA520"; // setting cat's other ear color to golden
ctx.beginPath(); // starting to draw cat's other ear
ctx.moveTo(322, 270); // starting point for cat's other ear
ctx.lineTo(292, 250); // drawing cat's other ear upper line
ctx.lineTo(292, 290); // drawing cat's other ear lower line
ctx.fill(); // filling cat's other ear
ctx.closePath(); // closing the path

//Drawing cat's tongue
ctx.fillStyle = "#FFA07A"; // setting cat's tongue color to light coral
ctx.beginPath(); // starting to draw cat's tongue
ctx.arc(230, 395, 5, 0, Math.PI * 2); // drawing cat's tongue
ctx.fill(); // filling cat's tongue
ctx.closePath(); // closing the path

//Drawing cat's collar
ctx.strokeStyle = "#FF00FF"; // setting cat's collar color to magenta
ctx.lineWidth = 5; // setting line width for cat's collar
ctx.beginPath(); // starting to draw cat's collar
ctx.arc(256, 350, 80, 0, Math.PI * 2); // drawing cat's collar
ctx.stroke(); // stroking cat's collar
ctx.closePath(); // closing the path

//Drawing cat's bell
ctx.fillStyle = "#FFD700"; // setting cat's bell color to gold
ctx.beginPath(); // starting to draw cat's bell
ctx.arc(285, 350, 10, 0, Math.PI * 2); // drawing cat's bell
ctx.fill(); // filling cat's bell
ctx.closePath(); // closing the path

//Drawing cat's bell clapper
ctx.fillStyle = "#FFA07A"; // setting cat's bell clapper color to light coral
ctx.beginPath(); // starting to draw cat's bell clapper
ctx.arc(285, 350, 5, 0, Math.PI * 2); // drawing cat's bell clapper
ctx.fill(); // filling cat's bell clapper
ctx.closePath(); // closing the path

//Drawing cat's name tag
ctx.fillStyle = "#FF00FF"; // setting cat's name tag color to magenta
ctx.font = "bold 16px Arial"; // setting font and size for cat's name tag
ctx.fillText("Fluffy", 245, 375); // adding cat's name to name tag

//Drawing cat's name tag border
ctx.strokeStyle = "#FF00FF"; // setting cat's name tag border color to magenta
ctx.lineWidth = 2; // setting line width for cat's name tag border
ctx.strokeRect(240, 365, 40, 20); // drawing cat's name tag border

//Drawing cat's thought bubble
ctx.fillStyle = "#FFFFFF"; // setting cat's thought bubble color to white
ctx.beginPath(); // starting to draw cat's thought bubble
ctx.arc(200, 250, 60, 0, Math.PI * 2); // drawing cat's thought bubble
ctx.stroke(); // stroking cat's thought bubble
ctx.closePath(); // closing the path

ctx.fillText("What a view!", 170, 235); // adding text to cat's thought bubble

//Drawing cat's thought bubble tail
ctx.strokeStyle = "#FFFFFF"; // setting cat's thought bubble tail color to white
ctx.beginPath(); // starting to draw cat's thought bubble tail
ctx.moveTo(240, 265); // starting point for cat's thought bubble tail
ctx.lineTo(290, 190); // drawing cat's thought bubble tail
ctx.stroke(); // stroking cat's thought bubble tail
ctx.closePath(); // closing the path

//Drawing spaceship's engine
ctx.fillStyle = "#FF0000"; // setting spaceship's engine color to red
ctx.beginPath(); // starting to draw spaceship's engine
ctx.arc(256, 420, 30, 0, Math.PI * 2); // drawing spaceship's engine
ctx.fill(); // filling spaceship's engine
ctx.closePath(); // closing the path

//Drawing spaceship's engine fire
ctx.fillStyle = "#FFA500"; // setting spaceship's engine fire color to orange
ctx.beginPath(); // starting to draw spaceship's engine fire
ctx.arc(256, 420, 20, 0, Math.PI * 2); // drawing spaceship's engine fire
ctx.fill(); // filling spaceship's engine fire
ctx.closePath(); // closing the path

//Drawing spaceship's engine fire
ctx.fillStyle = "#FFFF00"; // setting spaceship's engine fire color to yellow
ctx.beginPath(); // starting to draw spaceship's engine fire
ctx.arc(256, 420, 10, 0, Math.PI * 2); // drawing spaceship's engine fire
ctx.fill(); // filling spaceship's engine fire
ctx.closePath(); // closing the path

//Drawing spaceship's window border
ctx.strokeStyle = "#000000"; // setting spaceship's window border color to black
ctx.lineWidth = 2; // setting line width for spaceship's window border
ctx.strokeRect(200, 100, 112, 200); // drawing spaceship's window border

//Drawing spaceship's antenna
ctx.strokeStyle = "#FFFFFF"; // setting spaceship's antenna color to white
ctx.lineWidth = 3; // setting line width for spaceship's antenna
ctx.beginPath(); // starting to draw spaceship's antenna
ctx.moveTo(256, 100); // starting point for spaceship's antenna
ctx.lineTo(256, 80); // drawing spaceship's antenna
ctx.stroke(); // stroking spaceship's antenna
ctx.closePath(); // closing the path

//Drawing spaceship's antenna ball
ctx.fillStyle = "#FFFFFF"; // setting spaceship's antenna ball color to white
ctx.beginPath(); // starting to draw spaceship's antenna ball
ctx.arc(256, 70, 10, 0, Math.PI * 2); // drawing spaceship's antenna ball
ctx.fill(); // filling spaceship's antenna ball
ctx.closePath(); // closing the path

//Drawing spaceship's antenna base
ctx.fillStyle = "#D3D3D3"; // setting spaceship's antenna base color to light grey
ctx.beginPath(); // starting to draw spaceship's antenna base
ctx.arc(256, 100

Info

Created On: April 15, 2023
Created By: @DrawGPT

AI

Model: gpt-3.5-turbo-0301
Time: 117 seconds
Prompt Tokens: 189
Completion Tokens: 3000
Total Token Cost: 3189

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.