dwitter.net | eftko (6243)

+ 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: #Food
show FPS hide FPS share fullscreen

function u(t) {

}//
138/140


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

  • asteroid shower (still working on getting the forLoop trick from #pavel :> )

Please log in (or register) to comment.

show FPS hide FPS share 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).

  • Digital portal
  • u/rrlyrae
    You can try replacing C with S there (or S with C) to make bouncing diamonds!

Please log in (or register) to comment.

show FPS hide FPS share 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).

  • Symmetric bifurcations. The symmetry trick is ...+(a&1?b:-b), this will sometimes add a value ("b") and sometimes subtract. #bifurcation

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
due

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).

  • Lazy Lorenz system with z colouring

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
91/140


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

  • Black hole and white hole #attractor and now the space-time tranfer is visible
  • u/katkip
    b+=C(a-C(b+a)/2) is interesting too
  • u/tomxor
    I've never played with attractors, they are so simple and pretty :)
  • u/katkip
    Exactly

Please log in (or register) to comment.


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).

  • IFS #julia attractor for c=i. Play with adding different constants to a and b in the Math.hypot call

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
129/140


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

  • Slowly sorting 1000 values using bubble #sort
  • u/21medals
    if(2>frame%(i=1e3))for(d=[];i--;)d[i]=i**9%540 for(c.width=i;i-->0;v>(q=d[i+1])&&d.splice(i,2,q,v))x.fillStyle=hsl(${v=d[i]},99%,50%),x.fillRect(i,0,1,v)

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/joeytwiddle
    Ideally we would keep the edges smooth, by holding an intensity for each corner instead of the entire square
  • u/joeytwiddle
    W=width, H=half width, I=intensity, p=plot/plasma/partition
  • u/joeytwiddle
    p calls p four times for each sub-square, with a randomly smaller I

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
126/140


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

  • Polygon showcase

Please log in (or register) to comment.


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).

Please log in (or register) to comment.

Loading...
Next page