Monkey Eating a Spider in the Mountains

Monkey Eating a Spider in the Mountains - DrawGPT
a monkey eating a spider in the mountains
Bot
Return the JavaScript code

Javascript Code

                        // Monkey Eating a Spider in the Mountains

// Create a canvas element with a width of 512 and a height of 512

// Get the 2d context of the canvas

// Draw the mountains
ctx.fillStyle = '#c6e2ff'; // Light blue color for the sky
ctx.fillRect(0, 0, 512, 512); // Fill the entire canvas with the sky color

ctx.fillStyle = '#a5a5a5'; // Gray color for the mountains
ctx.beginPath();
ctx.moveTo(0, 512); // Start drawing the left side of the mountains from the bottom left corner
ctx.lineTo(256, 256); // Draw a line to the middle of the canvas
ctx.lineTo(512, 512); // Draw a line to the bottom right corner
ctx.closePath();
ctx.fill(); // Fill the mountains with gray color

// Draw the spider
ctx.fillStyle = '#000000'; // Black color for the spider
ctx.beginPath();
ctx.arc(256, 256, 50, 0, 2 * Math.PI); // Draw a circle for the spider's body
ctx.fill(); // Fill the spider's body with black color

ctx.fillStyle = '#ff0000'; // Red color for the spider's eyes
ctx.beginPath();
ctx.arc(236, 236, 5, 0, 2 * Math.PI); // Draw a circle for the left eye
ctx.arc(276, 236, 5, 0, 2 * Math.PI); // Draw a circle for the right eye
ctx.fill(); // Fill the spider's eyes with red color

// Draw the monkey
ctx.fillStyle = '#8b4513'; // Brown color for the monkey
ctx.beginPath();
ctx.moveTo(200, 300); // Start drawing the monkey's head from the top left corner
ctx.quadraticCurveTo(256, 200, 312, 300); // Draw a curved line for the monkey's head
ctx.lineTo(312, 400); // Draw a line for the monkey's body
ctx.quadraticCurveTo(256, 450, 200, 400); // Draw a curved line for the monkey's body
ctx.closePath();
ctx.fill(); // Fill the monkey's head and body with brown color

ctx.fillStyle = '#ffffff'; // White color for the monkey's eyes and teeth
ctx.beginPath();
ctx.arc(230, 320, 6, 0, 2 * Math.PI); // Draw a circle for the left eye
ctx.arc(282, 320, 6, 0, 2 * Math.PI); // Draw a circle for the right eye
ctx.fill(); // Fill the monkey's eyes with white color

ctx.beginPath();
ctx.moveTo(226, 350); // Start drawing the monkey's mouth from the top left corner
ctx.lineTo(280, 350); // Draw a line for the monkey's mouth
ctx.lineTo(253, 370); // Draw a line for the monkey's teeth
ctx.closePath();
ctx.fill(); // Fill the monkey's mouth and teeth with white color

// Give the monkey some emotions
ctx.strokeStyle = '#ff0000'; // Red color for the monkey's blush
ctx.lineWidth = 3;
ctx.beginPath();
ctx.arc(230, 320, 10, 0, Math.PI); // Draw a half-circle for the left blush
ctx.stroke(); // Stroke the left blush with red color and 3px width

ctx.beginPath();
ctx.arc(282, 320, 10, 0, Math.PI); // Draw a half-circle for the right blush
ctx.stroke(); // Stroke the right blush with red color and 3px width

// Make the monkey enjoy its meal
ctx.strokeStyle = '#000000'; // Black color for the monkey's arm
ctx.lineWidth = 8;
ctx.beginPath();
ctx.moveTo(150, 400); // Start drawing the monkey's arm from the top left corner
ctx.lineTo(100, 460); // Draw a line for the monkey's arm
ctx.stroke(); // Stroke the monkey's arm with black color and 8px width

ctx.beginPath();
ctx.moveTo(350, 400); // Start drawing the monkey's arm from the top right corner
ctx.lineTo(400, 460); // Draw a line for the monkey's arm
ctx.stroke(); // Stroke the monkey's arm with black color and 8px width

// Add some humor to the scene
ctx.font = '24px Arial';
ctx.fillStyle = '#000000';
ctx.textAlign = 'center';
ctx.fillText('Oops! Wrong Meal!', 256, 480); // Display a humorous message below the drawing

// Return the JavaScript code

Info

Created On: September 11, 2023
Created By: @DrawGPT

AI

Model: gpt-3.5-turbo-16k-0613
Time: 29 seconds
Prompt Tokens: 351
Completion Tokens: 1006
Total Token Cost: 1357
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.