dwitter.net | jpthinker (127)

+ 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

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

  • Spinning gold ring
  • u/jpthinker
    I wanted to shade this, so that the half of the ring further away would be darker, but I couldn’t quite figure it out.
  • u/lewdev
    I tried. I'm not sure if it's very good. d/32457
  • u/jpthinker
    That's just what I was trying to do! I will study that up well. Thanks u/lewdev !

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

  • Beach

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
121/140


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

  • Bytebeat Visualizer: Forty-Two Melody
  • u/jpthinker
    //Assumes 8-bit bitdepth r=8e3//Sample rate (hertz/sec) l=8//Number of lines/seconds to display //d is divisor to shorten lines when over 4 for(i=r*l,d=1+((i-1)/32e3|0);i--;x.fillRect(i%r/r*c.width,(((i/r|0)+1)*256-(m)%256)/d,9,9)){ m=i*(42&i>>10)//<-Music algo here! x.fillStyle=hsl(${(i>>7)*99} 99 50)}
  • u/jpthinker
    I made a #static visualizer to help me with bytebeats. This is a sample displaying 8 seconds of the famous forty-two melody: t*(42&t>>10). I posted it here incase anyone might find it useful...

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
134/140


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

  • Calligraphy

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
116/140


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

  • Heart

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

  • Rainbow Road

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

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

  • Painting with wine and koolaid

Please log in (or register) to comment.

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

  • It's a nifty word

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

  • Rhythmic Gymnastics

Please log in (or register) to comment.

Loading...
Next page