dwitter.net | dull_pixel (15258)

+ New dweet
function u(t) {
} //
122/140


Please log in (or register) to post a dweet (copy-paste the code somewhere safe to save it meanwhile)


u(t) is called 60 times per second. t: Elapsed time in seconds. S: Shorthand for Math.sin. C: Shorthand for Math.cos. T: Shorthand for Math.tan. R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5) c: A 1920x1080 canvas. x: A 2D context for that canvas.
Try the new frontend: beta.dwitter.net
Current theme challenge: #Opposites
show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
139/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Color explosion

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
136/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Maze Growth 2.0 (can be restarted)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
137/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Maze Growth

Please log in (or register) to comment.

show FPS hide FPS share 2 remixes fullscreen

function u(t) {

}//
125/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Torus Study #1

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
139/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • u/Xen
    smooth!
  • u/pavel
    Nice. Here's 126, maybe room for snowflake code with(x)for(fillRect(0,0,i=2e3,i);i--;)clearRect(50,9,!setTransform(s=2+i%7,0,0,s,i,i&&(i*i+t*s)*50%2e3-400),i&&!rotate(i+t/4))

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
115/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Radioactive Radar

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • perspective torus #d3
  • u/rodrigo.siqueira
    I always learn a lot about perspective by reading Cantelope's code. Thanks!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • u/TGY
    I don't think you need "var" there. It works fine without it :)
  • u/New_Core
    nice, and its 5 FPS faster with the "var" then without on my old machine.

Please log in (or register) to comment.


function u(t) {

}//
117/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Protein folding in 117 characters (extra bonus: view fullscreen to see ribosome α-helix spiral filaments)
  • Show more comments…
  • u/smtsjhr
    is it a sufficient condition for the appearance of α-helix spiral filaments to just use 'α' character in the code?
  • u/DataMeta
    this is amazing!! #organic
  • u/DataMeta
    this is amazing!! #organic
  • u/rodrigo.siqueira
    Sure Smtsjhr, I think you also noticed that there is a β value responsible for the Beta-Helix (secondary structures in proteins, forming helical patterns of β-strands). I've just created a remix, changing "α and β" parameters to "lighted circles and donuts", as you can see in the remix link.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/20901 by u/pavel

function u(t) {

}//
127/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • u/pavel
    Discovered this randomly when golfing the original. Not sure why it happens.
  • u/danny@hille.dk
    cool effect: the "feature" is caused by not truncating k=--i/120 -> k=--i/120|0 disables this feature :-)
  • u/KilledByAPixel
    👍
  • u/danny@hille.dk
    better solution: for(i=c.width|=p=g=>(g(0)?k&3:~~k/4)*200+150*g((k&1||-1)*(i%120*41/13+5*t));k=--i/120;)x.fillRect(560+p(S),240+p(C),9,9)

Please log in (or register) to comment.

Loading...
Next page