// Snowy Day Background with Clock for ОРТ 2 Channel 1997
// Set canvas size to 512x512
// Get 2d context
// Draw snowy background
ctx.fillStyle = '#ffffff'; // Set fill color to white
ctx.fillRect(0, 0, 512, 512); // Draw a rectangle to fill the canvas
// Draw snowflakes
for (let i = 0; i < 200; i++) {
const x = Math.random() * 512; // Random x-coordinate
const y = Math.random() * 512; // Random y-coordinate
const size = Math.random() * 4; // Random size
ctx.fillStyle = '#d3d3d3'; // Set fill color to light gray
ctx.beginPath(); // Start a new path
ctx.arc(x, y, size, 0, Math.PI * 2); // Draw a circle
ctx.fill(); // Fill the circle
}
// Draw clock
const clockRadius = 100;
const centerX = 512 / 2;
const centerY = 512 / 2;
// Draw clock face
ctx.fillStyle = '#f5f5f5'; // Set fill color to light gray
ctx.beginPath(); // Start a new path
ctx.arc(centerX, centerY, clockRadius, 0, Math.PI * 2); // Draw a circle for clock face
ctx.fill(); // Fill the circle
// Draw clock numbers
ctx.font = "bold 20px Arial"; // Set font style
ctx.fillStyle = '#000000'; // Set fill color to black
ctx.textAlign = 'center'; // Center align text
ctx.textBaseline = 'middle'; // Align vertically in the middle of the text
for (let i = 1; i <= 12; i++) {
const angle = (i / 12) * Math.PI * 2; // Calculate angle for each number
const x = centerX + Math.cos(angle) * (clockRadius - 20); // Calculate x-coordinate
const y = centerY + Math.sin(angle) * (clockRadius - 20); // Calculate y-coordinate
ctx.fillText(i.toString(), x, y); // Draw number on clock face
}
// Draw clock hands
const date = new Date();
const hours = date.getHours() % 12; // Get current hour in 12-hour format
const minutes = date.getMinutes();
const seconds = date.getSeconds();
// Draw hour hand
const hourAngle = ((hours + minutes / 60) / 12) * Math.PI * 2; // Calculate angle for hour hand
const hourLength = clockRadius * 0.5; // Set length of hour hand
const hourX = centerX + Math.cos(hourAngle) * hourLength; // Calculate x-coordinate
const hourY = centerY + Math.sin(hourAngle) * hourLength; // Calculate y-coordinate
ctx.strokeStyle = '#000000'; // Set stroke color to black
ctx.lineWidth = 5; // Set line width
ctx.beginPath(); // Start a new path
ctx.moveTo(centerX, centerY); // Move to center of the clock face
ctx.lineTo(hourX, hourY); // Draw line for hour hand
ctx.stroke(); // Stroke the line
// Draw minute hand
const minuteAngle = (minutes / 60) * Math.PI * 2; // Calculate angle for minute hand
const minuteLength = clockRadius * 0.7; // Set length of minute hand
const minuteX = centerX + Math.cos(minuteAngle) * minuteLength; // Calculate x-coordinate
const minuteY = centerY + Math.sin(minuteAngle) * minuteLength; // Calculate y-coordinate
ctx.lineWidth = 3; // Set line width
ctx.beginPath(); // Start a new path
ctx.moveTo(centerX, centerY); // Move to center of the clock face
ctx.lineTo(minuteX, minuteY); // Draw line for minute hand
ctx.stroke(); // Stroke the line
// Draw second hand
const secondAngle = (seconds / 60) * Math.PI * 2; // Calculate angle for second hand
const secondLength = clockRadius * 0.9; // Set length of second hand
const secondX = centerX + Math.cos(secondAngle) * secondLength; // Calculate x-coordinate
const secondY = centerY + Math.sin(secondAngle) * secondLength; // Calculate y-coordinate
ctx.strokeStyle = '#ff0000'; // Set stroke color to red
ctx.lineWidth = 1; // Set line width
ctx.beginPath(); // Start a new path
ctx.moveTo(centerX, centerY); // Move to center of the clock face
ctx.lineTo(secondX, secondY); // Draw line for second hand
ctx.stroke(); // Stroke the line
// Add a little clock face smiley
ctx.beginPath(); // Start a new path
ctx.arc(centerX, centerY, clockRadius * 0.05, 0, Math.PI, true); // Draw a semicircle for mouth
ctx.moveTo(centerX - clockRadius * 0.3, centerY - clockRadius * 0.3); // Move to left eye position
ctx.arc(centerX - clockRadius * 0.3, centerY - clockRadius * 0.3, clockRadius * 0.05, 0, Math.PI * 2); // Draw a circle for left eye
ctx.moveTo(centerX + clockRadius * 0.3, centerY - clockRadius * 0.3); // Move to right eye position
ctx.arc(centerX + clockRadius * 0.3, centerY - clockRadius * 0.3, clockRadius * 0.05, 0, Math.PI * 2); // Draw a circle for right eye
ctx.fillStyle = '#000000'; // Set fill color to black
ctx.fill(); // Fill the shapes
// Draw clock hands again to make them bolder
ctx.lineWidth = 5; // Set line width
ctx.beginPath(); // Start a new path
ctx.moveTo(centerX, centerY); // Move to center of the clock face
ctx.lineTo(hourX, hourY); // Draw line for hour hand
ctx.stroke(); // Stroke the line
ctx.lineWidth = 3; // Set line width
ctx.beginPath(); // Start a new path
ctx.moveTo(centerX, centerY); // Move to center of the clock face
ctx.lineTo(minuteX, minuteY); // Draw line for minute hand
ctx.stroke(); // Stroke the line
ctx.lineWidth = 1; // Set line width
ctx.beginPath(); // Start a new path
ctx.moveTo(centerX, centerY); // Move to center of the clock face
ctx.lineTo(secondX, secondY); // Draw line for second hand
ctx.stroke(); // Stroke the line
// All done! Time to admire my masterpiece.
// Why did the clock go to art school? Because it wanted to learn how to "tick"le people's fancy!
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.
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.
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.
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!
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.
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.
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 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.