Under the Sea

Under the Sea - DrawGPT
Under the Sea
Bot
...

Javascript Code

                        // Title: Under the Sea



// Draw the background
ctx.fillStyle = '#87CEEB'; // Blue sky
ctx.fillRect(0, 0, 512, 512);

// Draw the sea floor
ctx.fillStyle = '#CD853F'; // Sandy color
ctx.fillRect(0, 400, 512, 512 - 400);

// Draw some seaweed
ctx.fillStyle = '#228B22'; // Green seaweed
ctx.beginPath();
ctx.moveTo(100, 400);
ctx.quadraticCurveTo(150, 300, 200, 400);
ctx.lineTo(200, 512);
ctx.lineTo(100, 512);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.moveTo(400, 400);
ctx.quadraticCurveTo(350, 300, 300, 400);
ctx.lineTo(300, 512);
ctx.lineTo(400, 512);
ctx.closePath();
ctx.fill();

// Draw a friendly fish
ctx.fillStyle = '#FFD700'; // Goldfish color
ctx.beginPath();
ctx.arc(300, 350, 50, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw the fish's eye
ctx.fillStyle = '#000000'; // Black eye
ctx.beginPath();
ctx.arc(320, 330, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw some bubbles
ctx.fillStyle = '#FFFFFF'; // White bubbles
ctx.beginPath();
ctx.arc(150, 200, 10, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(200, 150, 15, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(250, 180, 20, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a sun
ctx.fillStyle = '#FFD700'; // Yellow sun
ctx.beginPath();
ctx.arc(50, 50, 40, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw sun rays
ctx.strokeStyle = '#FFD700'; // Yellow sun rays
ctx.lineWidth = 3;
ctx.beginPath();
ctx.moveTo(50, 10);
ctx.lineTo(50, 90);
ctx.moveTo(10, 50);
ctx.lineTo(90, 50);
ctx.moveTo(25, 25);
ctx.lineTo(75, 75);
ctx.moveTo(25, 75);
ctx.lineTo(75, 25);
ctx.closePath();
ctx.stroke();

// Draw a happy crab
ctx.fillStyle = '#FF4500'; // Orange crab
ctx.beginPath();
ctx.moveTo(400, 440);
ctx.lineTo(420, 480);
ctx.lineTo(440, 440);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(420, 460, 20, Math.PI, 0);
ctx.closePath();
ctx.fill();

// Draw crab eyes
ctx.fillStyle = '#000000'; // Black eyes
ctx.beginPath();
ctx.arc(410, 450, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(430, 450, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a smiling jellyfish
ctx.fillStyle = '#AFEEEE'; // Light blue jellyfish
ctx.beginPath();
ctx.moveTo(150, 450);
ctx.quadraticCurveTo(250, 350, 350, 450);
ctx.lineTo(350, 500);
ctx.lineTo(150, 500);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(250, 450, 100, 0, Math.PI, true);
ctx.closePath();
ctx.fill();

// Draw jellyfish tentacles
ctx.fillStyle = '#FF69B4'; // Pink tentacles
ctx.beginPath();
ctx.moveTo(210, 500);
ctx.quadraticCurveTo(250, 550, 290, 500);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.moveTo(230, 500);
ctx.quadraticCurveTo(250, 550, 270, 500);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.moveTo(250, 500);
ctx.quadraticCurveTo(250, 550, 250, 500);
ctx.closePath();
ctx.fill();

// Draw a treasure chest
ctx.fillStyle = '#8B4513'; // Brown treasure chest
ctx.beginPath();
ctx.fillRect(300, 450, 50, 40);
ctx.closePath();
ctx.fill();

ctx.fillStyle = '#CD853F'; // Sandy color
ctx.beginPath();
ctx.moveTo(300, 470);
ctx.lineTo(350, 470);
ctx.lineTo(325, 490);
ctx.closePath();
ctx.fill();

// Draw a smiling starfish
ctx.fillStyle = '#FFA500'; // Orange starfish
ctx.beginPath();
ctx.moveTo(450, 500);
ctx.lineTo(460, 480);
ctx.lineTo(480, 480);
ctx.lineTo(465, 470);
ctx.lineTo(475, 450);
ctx.lineTo(450, 465);
ctx.lineTo(425, 450);
ctx.lineTo(435, 470);
ctx.lineTo(420, 480);
ctx.closePath();
ctx.fill();

// Draw starfish eyes
ctx.fillStyle = '#000000'; // Black eyes
ctx.beginPath();
ctx.arc(455, 475, 2, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(470, 475, 2, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a playful octopus
ctx.fillStyle = '#800080'; // Purple octopus
ctx.beginPath();
ctx.arc(100, 480, 40, Math.PI * 0.5, Math.PI * 1.5);
ctx.quadraticCurveTo(135, 500, 160, 480);
ctx.lineTo(160, 450);
ctx.quadraticCurveTo(135, 430, 100, 450);
ctx.closePath();
ctx.fill();

// Draw octopus eyes
ctx.fillStyle = '#000000'; // Black eyes
ctx.beginPath();
ctx.arc(120, 460, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(140, 460, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a silly shark
ctx.fillStyle = '#696969'; // Gray shark
ctx.beginPath();
ctx.moveTo(50, 440);
ctx.lineTo(100, 440);
ctx.lineTo(120, 460);
ctx.lineTo(100, 480);
ctx.lineTo(50, 480);
ctx.closePath();
ctx.fill();

// Draw shark teeth
ctx.fillStyle = '#FFFFFF'; // White teeth
ctx.beginPath();
ctx.moveTo(80, 460);
ctx.lineTo(90, 450);
ctx.lineTo(90, 470);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.moveTo(70, 460);
ctx.lineTo(80, 450);
ctx.lineTo(80, 470);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.moveTo(60, 460);
ctx.lineTo(70, 450);
ctx.lineTo(70, 470);
ctx.closePath();
ctx.fill();

// Draw a cute seahorse
ctx.fillStyle = '#FF69B4'; // Pink seahorse
ctx.beginPath();
ctx.moveTo(200, 480);
ctx.lineTo(210, 460);
ctx.lineTo(230, 460);
ctx.lineTo(240, 480);
ctx.lineTo(230, 500);
ctx.lineTo(210, 500);
ctx.closePath();
ctx.fill();

// Draw seahorse eye
ctx.fillStyle = '#000000'; // Black eye
ctx.beginPath();
ctx.arc(220, 470, 2, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a smiling whale
ctx.fillStyle = '#0000FF'; // Blue whale
ctx.beginPath();
ctx.arc(400, 480, 60, Math.PI * 0.5, Math.PI * 1.5);
ctx.quadraticCurveTo(470, 520, 400, 560);
ctx.closePath();
ctx.fill();

// Draw whale spout
ctx.fillStyle = '#FFFFFF'; // White spout
ctx.beginPath();
ctx.moveTo(400, 550);
ctx.lineTo(380, 530);
ctx.lineTo(400, 520);
ctx.lineTo(420, 530);
ctx.closePath();
ctx.fill();

// Draw a funny clownfish
ctx.fillStyle = '#FFA500'; // Orange clownfish
ctx.beginPath();
ctx.arc(300, 410, 30, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw clownfish stripes
ctx.fillStyle = '#FFFFFF'; // White stripes
ctx.beginPath();
ctx.moveTo(300, 420);
ctx.lineTo(300, 400);
ctx.lineTo(280, 390);
ctx.lineTo(260, 380);
ctx.lineTo(240, 370);
ctx.lineTo(220, 380);
ctx.lineTo(200, 390);
ctx.lineTo(180, 400);
ctx.lineTo(180, 420);
ctx.closePath();
ctx.fill();

// Draw clownfish eye
ctx.fillStyle = '#000000'; // Black eye
ctx.beginPath();
ctx.arc(320, 400, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a curious turtle
ctx.fillStyle = '#008000'; // Green turtle
ctx.beginPath();
ctx.arc(150, 410, 40, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw turtle shell
ctx.fillStyle = '#FF8C00'; // Orange shell
ctx.beginPath();
ctx.arc(150, 410, 30, 0, Math.PI, true);
ctx.closePath();
ctx.fill();

// Draw turtle legs
ctx.fillStyle = '#008000'; // Green legs
ctx.beginPath();
ctx.moveTo(140, 420);
ctx.lineTo(130, 430);
ctx.lineTo(140, 430);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.moveTo(160, 420);
ctx.lineTo(170, 430);
ctx.lineTo(160, 430);
ctx.closePath();
ctx.fill();

// Draw a smiling eel
ctx.fillStyle = '#000000'; // Black eel
ctx.beginPath();
ctx.arc(250, 410, 25, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw eel eyes
ctx.fillStyle = '#FFFFFF'; // White eyes
ctx.beginPath();
ctx.arc(245, 405, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(255, 405, 5, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a cute pufferfish
ctx.fillStyle = '#FFFF00'; // Yellow pufferfish
ctx.beginPath();
ctx.arc(400, 410, 20, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw pufferfish spikes
ctx.fillStyle = '#000000'; // Black spikes
ctx.beginPath();
ctx.arc(400, 410, 8, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(400, 400, 8, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(400, 420, 8, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(410, 410, 8, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(390, 410, 8, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a happy shrimp
ctx.fillStyle = '#FF4500'; // Orange shrimp
ctx.beginPath();
ctx.arc(100, 430, 10, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw shrimp legs
ctx.strokeStyle = '#FF4500'; // Orange legs
ctx.lineWidth = 2;
ctx.beginPath();
ctx.moveTo(100, 430);
ctx.lineTo(90, 440);
ctx.moveTo(100, 430);
ctx.lineTo(110, 440);
ctx.moveTo(100, 430);
ctx.lineTo(100, 440);
ctx.closePath();
ctx.stroke();

// Draw a smiling squid
ctx.fillStyle = '#800080'; // Purple squid
ctx.beginPath();
ctx.arc(200, 430, 20, Math.PI * 0.5, Math.PI * 1.5);
ctx.quadraticCurveTo(220, 450, 200, 470);
ctx.lineTo(200, 480);
ctx.quadraticCurveTo(230, 460, 260, 480);
ctx.lineTo(260, 470);
ctx.quadraticCurveTo(240, 450, 260, 430);
ctx.closePath();
ctx.fill();

// Draw squid eyes
ctx.fillStyle = '#FFFFFF'; // White eyes
ctx.beginPath();
ctx.arc(210, 450, 4, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

ctx.beginPath();
ctx.arc(235, 450, 4, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

// Draw a funny seagull
ctx.fillStyle = '#FFFFFF'; // White seagull
ctx.beginPath();
ctx.moveTo(450, 60);
ctx.quadraticCurveTo(480, 80, 440, 100);
ctx.quadraticCurveTo(400, 120, 380, 90);
ctx.quadraticCurveTo(360, 60, 380, 40);
ctx.quadraticCurveTo(400, 20, 440, 40);
ctx.closePath();
ctx.fill();

// Draw seagull eye
ctx.fillStyle = '#000000'; // Black eye
ctx.beginPath();
ctx.arc(420, 60, 2, 0, Math.PI * 2);
ctx.closePath();
ctx.fill();

Info

Created On: October 10, 2023
Created By: @DrawGPT

AI

Model: gpt-3.5-turbo-16k-0613
Time: 103 seconds
Prompt Tokens: 395
Completion Tokens: 3000
Total Token Cost: 3395
DrawGPT logo DrawGPT logo

Compare & Benchmark AI Models

Try the new DrawGPT Compare

  • Instantly compare the latest AI models side-by-side.
  • Top models: GPT, Gemini, Claude, Grok, SDXL.
  • From OpenAI, Google, Anthropic, xAI, Scenario.gg.
  • Generate images or text with multiple models at once.
  • See results in real time, share, and benchmark.
Try DrawGPT Compare →
DrawGPT Compare demo
DrawGPT logo DrawGPT logo

Draw, Sketch, Paint, or Doodle Instantly

This is where you can draw anything—then AI turns it into real 3D images and more!

  • Draw, sketch, paint, or doodle anything right in your browser.
  • AI transforms your creations into 3D images, vector art, and more.
  • Create images from text prompts using top AI models: DALL-E 3, Gemini, Stable Diffusion, and more.
  • No subscription required – just use tokens for each image.
  • Download as PNG, SVG, or vector graphics.
  • Perfect for logos, icons, art, textures, patterns, and game assets.
  • Type anything, get an image instantly. Commercial use allowed!
Try DrawGPT Draw →
DrawGPT Draw demo

NEW COMMUNITY AI IMAGES


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.

FAQ

What is DrawGPT?

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.

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!

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 & 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.