Run details
- Model
- motif-technologies/motif-3
- Route
- OpenRouter API, one user message
- Served by
- KT
- Effort
- the model's default
- Limits
- 60 min · 235,929 output tokens (the model's limit)
- Date
- 17 Nov 2026
- Time
- 16 s
- Size
- 5.4 kB
- Tokens
- 73 in, 2,061 out (202 of them thinking)
- List price
- $0.002 at today's price ($0.30 in / $1.20 out per M)
- Paid
- $0.002
Exact prompt
Draw a mechanical wristwatch that shows the current local time, with a sweeping seconds hand and a date window. Make it look expensive. It must be one complete, self-contained HTML file: inline all CSS and JavaScript, and make no network requests of any kind (no CDNs, web fonts or remote images). Reply with the file in a single ```html code block.
Source
5.4 kB 193 lines Raw
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mechanical Wristwatch</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
font-family: 'Georgia', serif;
}
#watch {
width: 320px;
height: 320px;
box-shadow:
0 0 0 10px #d4af37,
0 0 0 15px #1a1a1a,
0 20px 40px rgba(0,0,0,0.5),
inset 0 0 20px rgba(0,0,0,0.3);
}
canvas {
display: block;
}
</style>
</head>
<body>
<div id="watch">
<canvas id="watchCanvas" width="320" height="320"></canvas>
</div>
<script>
const canvas = document.getElementById('watchCanvas');
const ctx = canvas.getContext('2d');
// Watch dimensions
const size = 320;
const cx = size / 2;
const cy = size / 2;
const outerRadius = 140;
const innerRadius = 135;
const dialRadius = 120;
const dateRadius = 35;
// Colors
const caseColor = '#d4af37'; // gold
const dialColor = '#f5f5dc'; // beige
const romanColor = '#2c2c2c';
const hourHandColor = '#2c2c2c';
const minuteHandColor = '#2c2c2c';
const secondHandColor = '#c0c0c0';
const centerDotColor = '#c0c0c0';
// Animation
let lastTime = 0;
function drawWatch() {
ctx.clearRect(0, 0, size, size);
// Draw case (gold ring)
ctx.beginPath();
ctx.arc(cx, cy, outerRadius, 0, Math.PI * 2);
ctx.strokeStyle = caseColor;
ctx.lineWidth = 8;
ctx.lineCap = 'round';
ctx.stroke();
// Draw inner case
ctx.beginPath();
ctx.arc(cx, cy, innerRadius, 0, Math.PI * 2);
ctx.strokeStyle = '#1a1a1a';
ctx.lineWidth = 2;
ctx.stroke();
// Draw dial background
ctx.beginPath();
ctx.arc(cx, cy, dialRadius, 0, Math.PI * 2);
ctx.fillStyle = dialColor;
ctx.fill();
ctx.strokeStyle = '#c0c0c0';
ctx.lineWidth = 1;
ctx.stroke();
// Draw hour markers (Roman numerals)
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.font = 'bold 18px "Georgia", serif';
const hourPositions = [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
hourPositions.forEach((num, i) => {
const angle = (i / 12) * Math.PI * 2 - Math.PI / 2;
const x = cx + Math.cos(angle) * 100;
const y = cy + Math.sin(angle) * 100;
ctx.fillStyle = romanColor;
ctx.fillText(num, x, y);
});
// Draw minute ticks (small dots)
ctx.fillStyle = '#c0c0c0';
for (let i = 0; i < 60; i++) {
const angle = (i / 60) * Math.PI * 2 - Math.PI / 2;
const r = 115;
const x = cx + Math.cos(angle) * r;
const y = cy + Math.sin(angle) * r;
if (i % 5 !== 0) {
ctx.beginPath();
ctx.arc(x, y, 2, 0, Math.PI * 2);
ctx.fill();
}
}
// Draw date window (at 3 o'clock)
const dateAngle = Math.PI / 2;
const dateX = cx + Math.cos(dateAngle) * 90;
const dateY = cy + Math.sin(dateAngle) * 90;
// Window background
ctx.beginPath();
ctx.arc(dateX, dateY, dateRadius, 0, Math.PI * 2);
ctx.fillStyle = '#fff';
ctx.fill();
ctx.strokeStyle = caseColor;
ctx.lineWidth = 1;
ctx.stroke();
// Date text
const now = new Date();
const day = String(now.getDate()).padStart(2, '0');
const month = String(now.getMonth() + 1).padStart(2, '0');
const dateStr = `${day}/${month}`;
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.font = 'bold 12px "Georgia", serif';
ctx.fillStyle = romanColor;
ctx.fillText(dateStr, dateX, dateY);
// Draw hands
const nowTime = new Date();
const seconds = nowTime.getSeconds() + nowTime.getMilliseconds() / 1000;
const minutes = nowTime.getMinutes() + seconds / 60;
const hours = nowTime.getHours() % 12 + minutes / 60;
// Second hand
drawHand(cx, cy, 110, (seconds / 60) * Math.PI * 2 - Math.PI / 2, 2, secondHandColor, false, 20);
// Minute hand
drawHand(cx, cy, 95, (minutes / 60) * Math.PI * 2 - Math.PI / 2, 3, minuteHandColor, false, 30);
// Hour hand
drawHand(cx, cy, 75, (hours / 12) * Math.PI * 2 - Math.PI / 2, 5, hourHandColor, false, 50);
// Center dot
ctx.beginPath();
ctx.arc(cx, cy, 5, 0, Math.PI * 2);
ctx.fillStyle = centerDotColor;
ctx.fill();
}
function drawHand(x, y, length, angle, width, color, shadow, shadowOffset) {
ctx.save();
ctx.strokeStyle = color;
ctx.lineWidth = width;
ctx.lineCap = 'round';
ctx.shadowColor = shadow ? '#000' : 'none';
ctx.shadowOffsetX = shadow ? 2 : 0;
ctx.shadowOffsetY = shadow ? 2 : 0;
ctx.shadowBlur = shadow ? 3 : 0;
ctx.beginPath();
ctx.moveTo(x, y);
ctx.lineTo(x + Math.cos(angle) * length, y + Math.sin(angle) * length);
ctx.stroke();
ctx.restore();
}
function animate(timestamp) {
if (timestamp - lastTime >= 16) { // ~60fps
drawWatch();
lastTime = timestamp;
}
requestAnimationFrame(animate);
}
// Initial draw
drawWatch();
requestAnimationFrame(animate);
</script>
</body>
</html>

