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

  • Inspired by recent orbit posts by SpecialAgent.

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
135/140


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

  • Animation of Weierstrass's 1872 example of a continuous function that becomes nowhere-differentiable when b>=7.
  • u/donbright
    very interesting!!!! always felt like demoscene is a gateway to math

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

}//
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 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) {

}//
139/140


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

  • Hypocycloids and epicycloids.

Please log in (or register) to comment.

Loading...
Next page