dweet your heart out
April 14, 2017 12:15 PM   Subscribe

Head to dwitter to look at and play with (and even create your own) tiny JavaScript demos. Lots of rad programmatic art: scratchy lines, a colorful random walk, some sort of hypercubic butterfly, pulsing and inverting abstract shapes, etc. There's even interactive stuff, both sights and sounds.
posted by cortex (11 comments total) 30 users marked this as a favorite
 
I wish i knew enough javascript to play with this. I don't even know enough to change parameters within already-built doodads. Everything I did just gave me a syntax error. Though, looking at some of this code, I think y'all are yanking my chain.
c.width^=余=C(t),正=S(t)
t?o.push({X:余+2,Y:5+正,Z:1}):o=[]
o.map((a)=>{({X,Y,Z}=a),a.X=余*X-正*Z,a.Z=余*Z+正*X,x.fillRect(1e3+X*99,Y*99-Z*33,3,3)})
Mar 13, 2017 10:34 PM}//140/140
Is...is that chinese?
posted by FirstMateKate at 12:25 PM on April 14, 2017


A Chinese system! I know this!
posted by danhon at 12:29 PM on April 14, 2017 [4 favorites]


That does indeed look like Chinese (or Japanese, the hanzi and kanji character sets are closely related) being used as a single-character variable name. In principle that shouldn't be any less legible than single roman character variable names like a, b, c etc. and actually kinda great since a single ideogram is a lot more semantically loaded than a random letter of the roman alphabet—it'd be like naming a variable "q" vs naming it "dog". But that presumes enough familiarity with the character set to actually quickly parse and distinguish the characters, which I lack so it becomes more of a pattern-matching game and you're right back to unhelpfully terse single-character variable names that way.

But, yeah, ridiculous concision seems to be part of the idea, to keep the code super short. You can find people doing stuff like "tweet jams" on twitter sometimes trying to cram a lot of functionality into 140 characters; this feels like a spiritual outgrowth of that (and more generally of decades of stunty short/obfuscated code playfulness).
posted by cortex at 12:32 PM on April 14, 2017 [1 favorite]


First thing I thought of: "You look like you just heard from D. Witter". But then, I'm old.
posted by oneswellfoop at 12:35 PM on April 14, 2017


ooo0! the onmousemove=e=> ones are fun
posted by French Fry at 12:50 PM on April 14, 2017






> raindrops

Looks like a dweetstorm to me.
posted by waninggibbon at 2:28 PM on April 14, 2017 [1 favorite]


a=1920
x.fillStyle="#065a8f"
x.fillRect(0,0,a,a)
x.fillStyle="#9cc754"
x.font="1000px Verdana"
x.fillText("MetaFilter", a-(t%4)*a, a/2)
posted by NMcCoy at 2:37 PM on April 14, 2017 [2 favorites]


This one's pretty awesome.
posted by farlukar at 2:48 PM on April 14, 2017 [2 favorites]


That's a great effect that looks like the XOR texture.
posted by umrain at 4:08 PM on April 14, 2017


« Older The Company Continued   |   The Moderators Newer »


This thread has been archived and is closed to new comments