News for hackers. Stuff that matters.
Re:Txtbirds by jgv on Friday November 09, 2012 @12:01PM (#4763647)
What about txtpeople tho? http://asdf.us/vortex/
Re:Txtbirds by gosub on Saturday November 10, 2012 @08:59AM (#4766649)
The effect of infinite audio tone descent is a Shepard tone http://en.wikipedia.org/wiki/Shepard_tone
Re:Txtbirds by jsvine on Friday November 09, 2012 @12:05PM (#4763663)
This made my day.
Re:Txtbirds by xvolter on Friday November 09, 2012 @02:05PM (#4764244)
Awesome!
Re:Txtbirds by pfortuny on Friday November 09, 2012 @10:45AM (#4763288)
I thought it was an angry birds for the command-line. Even though it is beautiful, I feel a bit disappointed... :)
Re:Txtbirds by xvolter on Friday November 09, 2012 @10:57AM (#4763345)
Aw, now that I've read this you got my hopes up.
Re:Txtbirds by nicklovescode on Friday November 09, 2012 @11:48AM (#4763578)
Not a critique of this in particular, but does JS styling inconsistency not drive everyone else mental? I'm not a big fan of camelCase, but when I see veer_coefficient_horizontal next to setTimeout, I get itchy.
Re:Txtbirds by polyfractal on Friday November 09, 2012 @11:34AM (#4763522)
I was really hoping that clicking the birds would shoot them down ala duckhunt.

Fun little demonstration :)

Re:Txtbirds by swohns on Friday November 09, 2012 @12:12PM (#4763699)
I tried the duckhunt click too, could be a nice mod into a HTML5 game!
Re:Txtbirds by jQueryIsAwesome on Friday November 09, 2012 @01:24PM (#4764043)
Here you go... shoot them all!

http://jsfiddle.net/vNuns/3/embedded/result/ (the code added is the peace at the end)

Re:Txtbirds by chao- on Friday November 09, 2012 @10:52AM (#4763314)
Getting all sorts of text artifacts remaining smeared across my browser. Not this site's fault, and is something I've experienced before. It does make me wonder where the blame lies, though: Linux, Firefox or my graphics card?
Re:Txtbirds by xvolter on Friday November 09, 2012 @10:57AM (#4763343)
The most likely would be Firefox. As Linux has nothing to do with graphics, so I assume you mean your X Server - like Gnome or XFCE or KDE - none of which have much affect into major browsers, which are designed to render themselves entirely separate from the system's window manager to be multi-platform. It's also not likely to be your graphics card, otherwise it would happen outside of your browser too. It could be the browser attempting to "accelerate" web pages by using your GPU - in which case you can find out by disabling GPU Accelerated Rendering - both Firefox and Chrome have settings for this.
Re:Txtbirds by chao- on Friday November 09, 2012 @12:30PM (#4763777)
Sorry, I should have specified better. By "Linux" I meant the overall mix of Xorg and whatever display or GUI toolkits are in use, and instead of "graphics card", I should have said "graphics card drivers". If the card itself were having issues, I'm sure more than Firefox would have problems. Alternatively, I always hear about how "Linux has bad font rendering!" but since I'm not much of a font guy, I'm not sure if they're referring to how the fonts look, or some deeper part of the process which displays the fonts.

I recently had to switch to the radeon (open source) drivers instead of fglrx (AMD's proprietary) drivers due to some incompatibility with a kernel upgrade. It makes sense that the problem would exist somewhere between Firefox and its use of those drivers.

Re:Txtbirds by xvolter on Friday November 09, 2012 @01:43PM (#4764147)
That does sound like it could easily cause problems. Graphics drivers are bad in all Linux systems. NVIDIA's I've seen tend to work better - just hope Steam does well with Linux and pushes ATI to finally make some good drivers.
Re:Txtbirds by brazzy on Friday November 09, 2012 @11:42AM (#4763555)
I believe your last guess is correct, in which case the fault is with the graphics card drivers.
Re:Txtbirds by lmm on Friday November 09, 2012 @12:38PM (#4763816)
My priors would be: if it's an ATI card it's their fault, otherwise probably firefox.
Re:Txtbirds by Erwin on Friday November 09, 2012 @11:06AM (#4763394)
I'm seeing trails on Chrome 23. They go away if I switch tabs and return. So it's not specific to Firefox at least.
Re:Txtbirds by chao- on Friday November 09, 2012 @12:32PM (#4763786)
I'm curious what OS and graphics drivers you are using. I've gotten a similar effect once in a blue moon while simply scrolling.
Re:Txtbirds by Erwin on Friday November 09, 2012 @06:53PM (#4765308)
This is Ubuntu 12.04 using the integrated graphics in the Intel i7 CPU/chipset. Never seen quite that effect before however.
Re:Txtbirds by jofo25 on Friday November 09, 2012 @11:56AM (#4763624)
I liked this little trick for going over and over an array:

this.flaps = [ '------', '/‾\\/‾\\', '‾‾\\/‾‾' ]; ... this.el.innerHTML = this.flaps[this.flap_i++ % this.flaps.length];

Re:Txtbirds by DanBC on Friday November 09, 2012 @12:04PM (#4763655)
I like this.

What next, 3d ascii boids, with text size to show near or farness?

Re:Txtbirds by sequoia on Friday November 09, 2012 @11:04AM (#4763383)
Is there a blog post about this? I get most of it but a couple things, namely how the css transitions interact with the property updates in in the veer & fly functions and how opacity is governed. Good show, nice example of a tidy little JS object!
Re:Txtbirds by jsvine on Friday November 09, 2012 @11:26AM (#4763487)
Hey, thanks! I haven't written anything about txtbirds yet, but might soon. In the meantime, a brief explanation about those transitions and property updates:

- With the exception of the `margin` transition, all the transitions are set to 10 seconds — roughly each bird's lifespan.

- The `left` and `top` transitions move the bird toward the center from a randomly-assigned position on the screen.

- The `font-size` and `color` transitions create the impression that the bird is receding into the distance, getting smaller and more lightly-colored.

- The `margin` transition governs the veering. Every half-second, the bird is given new, randomish left- and top-margins. The transition (set to slightly less than a second in duration, after some trial-and-error) smooths that shift.

Re:Txtbirds by sequoia on Friday November 09, 2012 @12:37PM (#4763804)
haha the text is faded to BG color, not alpha 0%... not sure why this possibility didn't occur to me. Thanks!
Re:Txtbirds by ilanco on Friday November 09, 2012 @11:34AM (#4763523)
Any reason you close your <html> tag with a </div> ?
Re:Txtbirds by jsvine on Friday November 09, 2012 @11:39AM (#4763544)
Nope, just an oversight. Thanks for flagging. Fixed: https://github.com/jsvine/txtbirds/commit/b1fbf84560c1b2ad30...
Re:Txtbirds by vignesh_vs_in on Friday November 09, 2012 @10:30AM (#4763209)
Works only on chrome, Firefox(15 on XP) just shows a blank screen.

Edit: Apparently it doesn't work on FF 15. It worked on FF16 XP. and it also works on Safari

Re:Txtbirds by mcherm on Friday November 09, 2012 @10:32AM (#4763218)
Works fine for me on Firefox 16.0.2 (Win).
Re:Txtbirds by PostOnce on Friday November 09, 2012 @10:38AM (#4763249)
Didn't work in 15.0.1(Win7), updated, works in 16.0.2
Re:Txtbirds by antidoh on Friday November 09, 2012 @11:10AM (#4763404)
Me too, 16.02 on Ubuntu.
Re:Txtbirds by sabret00the on Friday November 09, 2012 @10:55AM (#4763334)
Works for me in Firefox (Nightly) 19
Re:Txtbirds by ygra on Friday November 09, 2012 @11:42AM (#4763554)
Works fine in IE 10 too.
Re:Txtbirds by willyt on Friday November 09, 2012 @10:34AM (#4763230)
Safari 6.0.2 is fine
Re:Txtbirds by freejack on Friday November 09, 2012 @10:35AM (#4763231)
latest safari is peachy too.
Re:Txtbirds by Gigablah on Friday November 09, 2012 @10:35AM (#4763234)
I was expecting the page title to animate as well :)
Re:Txtbirds by nickthemagicman on Friday November 09, 2012 @11:05AM (#4763388)
Any way to get this as a screensaver?
Re:Txtbirds by jonalexr on Friday November 09, 2012 @07:29PM (#4765418)
If you're on a Mac check out https://github.com/liquidx/webviewscreensaver - Works well but you might not always have an internet connection so I just saved the HTML/CSS/JS into a folder and linked directly to that (and it works!)
Re:Txtbirds by K2h on Friday November 09, 2012 @03:26PM (#4764600)
On windows, I imagine you could set screensaver to call firefox directly to load the web page - and set firefox to default to full screen mode.

http://kb.mozillazine.org/Command_line_arguments

Re:Txtbirds by programminggeek on Friday November 09, 2012 @02:06PM (#4764255)
I instantly tried to play duck hunt with this. It's broken.
Re:Txtbirds by jentulman on Friday November 09, 2012 @02:30PM (#4764366)
A flock of CSSGulls?
Re:Txtbirds by shiftins on Friday November 09, 2012 @11:25AM (#4763479)
pass gyre into your constructor, and reference the local variable. kudos, i love scripts for the sake of scripts.
Re:Txtbirds by jsvine on Friday November 09, 2012 @11:35AM (#4763527)
Re:Txtbirds by antirez on Friday November 09, 2012 @10:53AM (#4763322)
small little piece of art, great.
Re:Txtbirds by bootz15 on Friday November 09, 2012 @10:46AM (#4763290)
not impressed. doesn't even work in opera :(
Re:Txtbirds by forrestkyle on Friday November 09, 2012 @11:04AM (#4763380)
Yeah, I'm not very impressed with Opera either. ;)
Re:Txtbirds by plorkyeran on Friday November 09, 2012 @11:41AM (#4763551)
Works fine for me in Opera.