Raining in an Empty Blue Ocean

Raining in an Empty Blue Ocean - DrawGPT
raining in an empty blue ocean
Bot
...

Javascript Code

                        // Title: Raining in an Empty Blue Ocean

ctx.fillStyle = "deepskyblue"; // Setting the background color to a beautiful deep sky blue
ctx.fillRect(0, 0, 512, 512); // Filling the entire canvas with the background color

// Drawing the empty blue ocean
ctx.fillStyle = "lightskyblue"; // Setting the color for the ocean
ctx.fillRect(0, 256, 512, 256); // Drawing the lower half of the canvas as the ocean

// Drawing raindrops in the ocean
ctx.fillStyle = "white"; // Setting the color for the raindrops

// Drawing the raindrops in a loop
for (let i = 0; i < 100; i++) {
let x = Math.random() * 512; // Random X position within the canvas width
let y = Math.random() * 256; // Random Y position within the upper half of the canvas

// Drawing a raindrop as a small circle
ctx.beginPath();
ctx.arc(x, y, 2, 0, Math.PI * 2); // Drawing a circle with a radius of 2 pixels
ctx.fill();
}

// Adding a little splash effect to the raindrops
ctx.fillStyle = "white"; // Setting the color for the splash effect

// Drawing the splash effect for each raindrop
for (let i = 0; i < 100; i++) {
let x = Math.random() * 512; // Random X position within the canvas width
let y = Math.random() * 256; // Random Y position within the upper half of the canvas

// Drawing the splash effect as a small ellipse
ctx.beginPath();
ctx.ellipse(x, y, 5, 2, 0, 0, Math.PI * 2); // Drawing an ellipse with a width of 5 pixels and a height of 2 pixels
ctx.fill();
}

// Adding some seagulls to the scene
ctx.fillStyle = "white"; // Setting the color for the seagulls

// Drawing the seagulls in a loop
for (let i = 0; i < 5; i++) {
let x = Math.random() * 512; // Random X position within the canvas width
let y = Math.random() * 200; // Random Y position within the upper part of the canvas

// Drawing a seagull as a simple triangle
ctx.beginPath();
ctx.moveTo(x, y); // Starting point of the triangle
ctx.lineTo(x + 10, y - 20); // Point on the top of the triangle
ctx.lineTo(x + 20, y); // Point on the right side of the triangle
ctx.closePath();
ctx.fill();
}

// Adding a happy sun to the scene
ctx.fillStyle = "yellow"; // Setting the color for the sun

// Drawing the sun as a circle
ctx.beginPath();
ctx.arc(256, 128, 40, 0, Math.PI * 2); // Drawing a circle with a radius of 40 pixels at the center of the canvas
ctx.fill();

// Adding some sun rays to make the sun even happier
ctx.strokeStyle = "yellow"; // Setting the color for the sun rays
ctx.lineWidth = 2; // Setting the width of the sun rays

// Drawing the sun rays in a loop
for (let i = 0; i < 12; i++) {
let angle = (i * Math.PI) / 6; // Calculating the angle for each sun ray

// Drawing each sun ray as a line
ctx.beginPath();
ctx.moveTo(256, 128); // Starting point at the center of the canvas
ctx.lineTo(256 + Math.cos(angle) * 60, 128 + Math.sin(angle) * 60); // Endpoint of the sun ray
ctx.stroke();
}

// Adding a little smiley face to the sun to make it extra happy
ctx.strokeStyle = "black"; // Setting the color for the smiley face
ctx.lineWidth = 2; // Setting the width of the smiley face

// Drawing the smiley face using arcs and lines
ctx.beginPath();
ctx.arc(256, 128, 20, 0, Math.PI, false); // Drawing the curved part of the smile
ctx.moveTo(246, 118); // Moving to the left endpoint of the smile
ctx.lineTo(266, 118); // Drawing the line to the right endpoint of the smile
ctx.moveTo(246, 138); // Moving to the left eye
ctx.arc(241, 138, 5, 0, Math.PI * 2); // Drawing the left eye as a small circle
ctx.moveTo(266, 138); // Moving to the right eye
ctx.arc(261, 138, 5, 0, Math.PI * 2); // Drawing the right eye as a small circle
ctx.stroke();

// Adding a little message to the artwork to bring a smile
ctx.font = "20px Arial"; // Setting the font for the message
ctx.fillStyle = "black"; // Setting the color for the message
ctx.fillText("Enjoy the rain in the ocean!", 100, 480); // Drawing the message at the bottom of the canvas

// Time for a happy dance in the rain! 💃🌧️


Info

Created On: July 31, 2023
Created By: @DrawGPT

AI

Model: gpt-3.5-turbo-16k-0613
Time: 19 seconds
Prompt Tokens: 181
Completion Tokens: 1127
Total Token Cost: 1308
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.