Remix.run Logo
dwringer 4 hours ago

Well, I tried a variation of a prompt I was messing with in Flash 2.5 the other day in a thread about AI-coded analog clock faces. Gemini Pro 3 Preview gave me a result far beyond what I saw with Flash 2.5, and got it right in a single shot.[0] I can't say I'm not impressed, even though it's a pretty constrained example.

> Please generate an analog clock widget, synchronized to actual system time, with hands that update in real time and a second hand that ticks at least once per second. Make sure all the hour markings are visible and put some effort into making a modern, stylish clock face. Please pay attention to the correct alignment of the numbers, hour markings, and hands on the face.

[0] https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%...

stalfie 4 hours ago | parent | next [-]

The subtle "wiggle" animation that the second hand makes after moving doesn't fire when it hits 12. Literally unwatchable.

apetresc an hour ago | parent | next [-]

In its defence, the code actually specifically calls that edge case out and justifies it:

    // Calculate rotations
    // We use a cumulative calculation logic mentally, but here simple degrees work because of the transition reset trick or specific animation style.
    // To prevent the "spin back" glitch at 360->0, we can use a simple tick without transition for the wrap-around,
    // but for simplicity in this specific React rendering, we will stick to standard 0-360 degrees.
    // A robust way to handle the spin-back on the second hand is to accumulate degrees, but standard clock widgets often reset.
skipnup an hour ago | parent | prev [-]

The Swiss and German railway clocks actually work the same way and stop for (half a?) second while the minute handle progresses.

https://youtu.be/wejbVtj4YR0

xnx 3 hours ago | parent | prev | next [-]

This is cool. Gemini 2.5 Pro was also capable of this. Gemini was able to recreate famous piece of clock artwork in July: https://gemini.google.com/app/93087f373bd07ca2

"Against the Run": https://www.youtube.com/watch?v=7xfvPqTDOXo

farazbabar 3 hours ago | parent | prev | next [-]

https://ai.studio/apps/drive/1yAxMpwtD66vD5PdnOyISiTS2qFAyq1... <- this is very nice, I was able to make seconds smooth with three iterations (it used svg initially which was jittery, but eventually this).

thegrim33 4 hours ago | parent | prev | next [-]

"Allow access to Google Drive to load this Prompt."

.... why? For what possible reason? No, I'm not going to give access to my privately stored file share in order to view a prompt someone has shared. Come on, Google.

LiamPowell 4 hours ago | parent [-]

You don't want to give Google access to files you've stored in Google Drive? It's also only access to an application specific folder, not all files.

tibbar 2 hours ago | parent [-]

Well, you also have to allow it to train on your data. Although this is not explicitly about your Google drive data, and probably requires you to submit a prompt yourself, the barriers here are way to weak/fuzzy for me consider granting access via any account with private info.

skybrian 4 hours ago | parent | prev | next [-]

It looks quite nice, though to nitpick, it has “quartz” and “design & engineering” for no reason.

wongarsu 3 hours ago | parent [-]

Just like actual cheap but not bottom of the barrel clocks

pmarreck 4 hours ago | parent | prev | next [-]

holy shit! This is actually a VERY NICE clock!

dyauspitr 4 hours ago | parent | prev [-]

Having seen the page the other day this is pretty incredible. Does this have the same 2000 token limit as the other page?

dwringer 4 hours ago | parent [-]

This isn't using the same prompt or stack as the page from that post the other day; on aistudio it builds a web app across a few different files. It's still fairly concise but I don't think it's that much so.