dwitter.net | hamptonio (168)

+ 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: #ScaryMovies
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).

  • A Chua circuit-like ODE with chaotic attractors

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

  • The Lorenz equations chaotic strange attractor

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
97/140


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

  • From 1872, Weierstrass's first example of a continuous but nowhere-differentiable function.

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

  • Newton's method on z^3-1.
  • u/iverjo
    Would this draw faster if we draw from top to bottom rather than from left to right?
  • u/hamptonio
    Nice - you are right, that is faster.

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

  • Thanks to iverjo for the speedup from #1660.

Please log in (or register) to comment.

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

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

  • I like New_Core's use of a single loop to get two coordinates; I think this is a slight improvement on that aspect.

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

  • Remix of one by Niklas
  • u/lionleaf
    (If you do the edit and post directly from another dweet they will link up and you'll get the "remix of #xxx by xyz" tag :) )
  • u/donbright
    drunk electron?
  • u/hamptonio
    just messing around, this is my first day!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
124/140


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

  • Remove "a" from "o.start(a)" to begin the annoyance. This golfing tweak to New_Core's should allow for more complexity to be added...
  • Show more comments…
  • u/iverjo
    Room for 25 more characters of fun! :D
  • u/hamptonio
    if(!t){a=new(AudioContext)();o=[];for(i=6;i--;){q=o[i]=a.createOscillator();q.connect(a.destination);q.start()}}o[t%6|0].detune.value+=S(t)
  • u/hamptonio
    multivoice above
  • u/iverjo
    #audio

Please log in (or register) to comment.

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

Please log in (or register) to comment.

Loading...
Next page