Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Sprocket Science: Animating a Chain Drive System

Current License: CC BY-SA 4.0

25 events
when toggle format what by license comment
May 4, 2023 at 8:01 history edited mousetail CC BY-SA 4.0
Fix imgur link since they are going to delete all anonymous images
Sep 30, 2017 at 12:37 answer added micnic timeline score: 3
Apr 12, 2016 at 12:50 comment added Ell @MartinBüttner Hit enter too soon... TBH, I can't remember why exactly this happens right now. It has to do with the fact that, since the chain is so short in this case, the approximation of 4π is way off. But I can't remember why it affects the entire sprocket, and not just the wrap-around point.
Apr 12, 2016 at 12:40 comment added Ell @MartinBüttner Dammit, I hoped no one would notice ;) That's because
Apr 12, 2016 at 11:27 comment added Martin Ender I never noticed this in the dozens of times I have looked at this challenge, but the chain and sprocket in the point of the exclamation mark are slightly off and now I can't unsee it. T_T Note to self: don't stare at colourful GIFs for too long.
Apr 12, 2016 at 8:33 comment added Ell @Sp3000 All the other entries were so much awesomer! My implementation is neither particularly golfed, nor coherent, but I'll try to post something :)
Apr 11, 2016 at 7:43 comment added Sp3000 @Ell Congratulations on winning the "Labour of Love" category for "Best of PPCG 2015" with this challenge! Unfortunately, questions can't be awarded bounties (yet), so would it be possible for you to post a golfed version of your implementation to award a bounty to? We'd love to see it, considering the effort you put into this challenge :)
Mar 25, 2016 at 12:11 vote accept Ell
Mar 20, 2016 at 21:55 answer added Flambino timeline score: 45
Dec 14, 2015 at 15:14 vote accept Ell
Mar 25, 2016 at 12:11
S Dec 14, 2015 at 15:14 history bounty ended Ell
S Dec 14, 2015 at 15:14 history notice removed Ell
S Dec 7, 2015 at 17:18 history bounty started Ell
S Dec 7, 2015 at 17:18 history notice added Ell Draw attention
Nov 27, 2015 at 15:20 answer added TFeld timeline score: 41
Nov 26, 2015 at 0:16 comment added Ell @Anko The good news is that you don't have to worry about it: this situation is guaranteed not to happen in the input; see the "no sprocket intersects the convex hull..." part, the one with the image with the three shaded regions. More generally, the chain crosses each sprocket only once, according to the sprockets' order, even if it looks like it passes near a sprocket more more than once.
Nov 25, 2015 at 23:22 comment added Anko How should three equally-sized sprockets in a straight line look? Does the chain cross twice, once or no times? Wait—it loops completely around the middle one, right? This is doing my head in already.
Nov 25, 2015 at 21:50 comment added Chad Baxter Jesus...this would be a fairly large project I'd be hard pressed to make this one work in my favorite language(powershell) I'd have to use third party image manipulation stuff which is not code-golfy at all. The only viable language to golf this in would be Java with its extensive libraries.
Nov 25, 2015 at 16:53 history tweeted twitter.com/StackCodeGolf/status/669559540489302016
Nov 25, 2015 at 16:30 comment added Ell @JAtkin Same way everyone else should: I wrote a solution :) If you're asking about the specifics, I used Cairo for the individual frames, and then used ImageMagick to create the gifs (BTW, if anyone wants to produce the animation this way, i.e., by first generating the frames and then using an external tool to turn them into animation, I'm totally fine with that, as long as you specify the dependency on the tool in your post. Just to be clear, it's your program that should invoke the tool, not the user.)
Nov 25, 2015 at 16:16 comment added J Atkin How did you make the gifs? And how long has this been in the works?
Nov 25, 2015 at 16:11 comment added DavidC I will be impressed if anyone answers this successfully with any amount of code.
Nov 25, 2015 at 15:57 history edited Ell CC BY-SA 3.0
added 21 characters in body
Nov 25, 2015 at 15:19 comment added Adnan These gifs are very satisfying +1
Nov 25, 2015 at 15:10 history asked Ell CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /