Tactical Spartan Ready for Action

Tactical Spartan Ready for Action - DrawGPT

"This is SPARTA!" - and this is the end of the code.

Javascript Code

                        // Title: Tactical Spartan Ready for Action

// Set up the canvas and context

// Spartan's Helmet
ctx.beginPath();
ctx.moveTo(256, 150);
ctx.lineTo(200, 300);
ctx.lineTo(312, 300);
ctx.closePath();
ctx.fillStyle = '#d3d3d3'; // Spartan helmets were not usually hot pink
ctx.fill();
ctx.stroke();

// Helmet Plume
ctx.beginPath();
ctx.moveTo(256, 150);
ctx.lineTo(256, 100);
ctx.strokeStyle = '#ff0000'; // Because a Spartan with a pink plume would be too fabulous
ctx.lineWidth = 10;
ctx.stroke();

// Eyes and Nose (on the helmet, not floating magically)
ctx.beginPath();
ctx.arc(235, 250, 5, 0, Math.PI * 2, true); // Left eye
ctx.arc(277, 250, 5, 0, Math.PI * 2, true); // Right eye
ctx.fillStyle = 'black';
ctx.fill();

ctx.beginPath();
ctx.moveTo(256, 250);
ctx.lineTo(246, 270);
ctx.lineTo(266, 270);
ctx.closePath();
ctx.fillStyle = 'black';
ctx.fill();

// Body Armor
ctx.beginPath();
ctx.moveTo(200, 300);
ctx.lineTo(180, 450);
ctx.lineTo(330, 450);
ctx.lineTo(312, 300);
ctx.closePath();
ctx.fillStyle = '#5f5f5f'; // The color of intimidation
ctx.fill();
ctx.stroke();

// Utility Belt (for snacks and tactical stuff)
ctx.beginPath();
ctx.rect(180, 450, 150, 20);
ctx.fillStyle = '#654321'; // Because the only thing more tactical than black is dark brown
ctx.fill();
ctx.stroke();

// Arms (Spartans need these to hold stuff)
ctx.beginPath();
ctx.rect(160, 300, 20, 150);
ctx.rect(332, 300, 20, 150);
ctx.fillStyle = '#d3d3d3';
ctx.fill();
ctx.stroke();

// Spear (the pointy end goes towards the other guy)
ctx.beginPath();
ctx.moveTo(100, 100);
ctx.lineTo(100, 412);
ctx.lineWidth = 6;
ctx.strokeStyle = '#8b4513'; // A good sturdy wood color
ctx.stroke();

ctx.beginPath();
ctx.moveTo(90, 100);
ctx.lineTo(110, 100);
ctx.lineTo(100, 80);
ctx.closePath();
ctx.fillStyle = '#cccccc'; // A shiny tip for maximum poking efficiency
ctx.fill();
ctx.stroke();

// Shield (to block stuff)
ctx.beginPath();
ctx.arc(450, 350, 60, 0, Math.PI * 2, true);
ctx.fillStyle = '#fcd116'; // A shield that says "I mean business"
ctx.fill();
ctx.stroke();

ctx.beginPath();
ctx.arc(450, 350, 50, 0, Math.PI * 2, true);
ctx.fillStyle = '#0000ff'; // A dash of bold blue because style matters
ctx.fill();

// The Spartan's Legs (because hopping into battle is frowned upon)
ctx.beginPath();
ctx.rect(200, 470, 40, 30);
ctx.rect(272, 470, 40, 30);
ctx.fillStyle = '#808080'; // Grey for the greaves, historically accurate and snazzy
ctx.fill();
ctx.stroke();

ctx.beginPath();
ctx.moveTo(200, 500);
ctx.lineTo(200, 512);
ctx.lineTo(240, 512);
ctx.lineTo(240, 500);
ctx.closePath();

ctx.moveTo(272, 500);
ctx.lineTo(272, 512);
ctx.lineTo(312, 512);
ctx.lineTo(312, 500);
ctx.closePath();

ctx.fillStyle = '#000000'; // Nothing says "ready for action" like black combat sandals
ctx.fill();

// Let's put this Spartan on the display shelf!

// "This is SPARTA!" - and this is the end of the code.

Info

Created On: January 17, 2024
Created By: @DrawGPT

AI

Model: gpt-4-1106-preview
Time: 84 seconds
Prompt Tokens: 430
Completion Tokens: 873
Total Token Cost: 1303

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.