dwitter.net | tomxor (5340)

+ 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
remix of d/21339 by u/tomxor

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

Please log in (or register) to comment.

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

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

  • u/tomxor
    Note the intersection is fuzzy since full circle-AABB takes too much code, instead it's just circle-point + current subdivision width based radius (w*w*6.28), i.e it becomes more accurate as it converges.
  • u/tomxor
    This is why there are a bunch of divisions around it that would not exist with an exact test. Pavel's doesn't do this by cleverly choosing a geometry that only need intersect the top left of each square.
  • u/katkip
    Nice!

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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/17271 by u/tomxor

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

  • yote

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/17021 by u/tomxor

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

  • Level 2 - Beach Stage

Please log in (or register) to comment.

remix of d/15316 by u/taupelink

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

  • Chaos Photographer, Pic 1

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/12595 by u/tomxor

function u(t) {

}//
131/140


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

  • Fractal Ocean
  • u/tomxor
    Or puddle depending on your frame rate :D

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/27290 by u/vgel

function u(t) {

}//
120/140


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

  • Torus #sdf 153 Bytes
  • u/tomxor
    13 chars over, this has been squeezed pretty hard, I don't think it's going to fit into 140.
  • u/magna
    donut underestimate yourself
  • u/tomxor
    😂 🥁

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

  • Accurate Relative Scale Solar System
  • u/tomxor
    1000 kilometers per pixel, and 1000 seconds per second. Inspired by d/26463 An orthographic projection (i.e no perspective), imagine looking at our solar system through a telescope from a distant alien world. All scales are accurate relative to each other, radi, mean orbital distances, and sidereal orbital period. This is only possible by lining up the planets and looking through the orbital plane, but due to the massive orbital distances they all shoot off screen quickly.
  • u/jdspugh
    Really cool
  • u/cantelope
    madman

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/24801 by u/rep_movsd

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

  • Smolr Fluffier Gumowski-Mira Mythic Bird

Please log in (or register) to comment.

Loading...
Next page