Dwitter | donbright (511)

+ 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.
remix of d/6160 by u/zanella

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

  • donbright: zanella got me thinking more about math... d/6378 was basic color... this doesn't look like much but the theory is interesting to me....a circles-and-squares pseudo fractal, but with the added idea of "centers of gravity" from which the modular arithmetic create patterns against each other. it's incredibly slow so animation is almost pointless. but i like the idea still.

Please log in (or register) to comment.


function u(t) {

}//
141/140


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

  • donbright: note to future self... this is some kind of weird combination of interference patterns between waves, and circle-squares fractals ....to see whats going on, start out with fillstyle=R(B%256,0,0) then work from there.
  • donbright: note to future self... this is some kind of weird combination of interference patterns between waves, and circle-squares fractals ....to see whats going on, start out with fillstyle=R(B%256,0,0) then work from there.
  • donbright: in other words, it's not drawing the "lines of force", those lines are an artefact of the remainders of the 'quadrance' (squared distance) between the two black balls

Please log in (or register) to comment.

remix of d/3697 by u/Citiral

function u(t) {

}//
108/140


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

  • joeytwiddle: I was about to comment "donbright would like this one" but then suddenly ... !
  • magna: Wow!
  • Xen: one of my new fav's, love this!

Please log in (or register) to comment.

remix of d/3604 by u/Xen

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

  • donbright: interesting fact: there are no curved lines, they are all straight. and there are no trig functions.
  • Xen: love it :-)

Please log in (or register) to comment.

remix of d/3119 by u/Xen

function u(t) {

}//
141/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.


function u(t) {

}//
130/140


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

  • Load older comments...
  • donbright: oh, note, alter 东 and 北 to get different patterns.
  • joeytwiddle: H̀̕E̸͞ ̛̕͜C͡O̷M̷͜E̸͟S͢͜
  • Xen: n̎ͭͫ͐͛ͫ͌͂̇̾͆͋̍̾̈́ͨͤͨ҉͜͠o̷̶͛ͮ͗́̚͝ơͥ̆ͦͧ̇̅̋̅ͨͮ̃ͫ͂̌̐̓҉͏̵oͦ͂̂̅͑ͩͭ̒ͧ̀̚͠o̧ͤ͌ͩ̏ͨ͏͝

Please log in (or register) to comment.

remix of d/2887 by u/dzozef

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

Please log in (or register) to comment.

remix of d/2839 by u/alien

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

  • donbright: remixing @alien color + code with some of my old binary quadratic forms stuff (aka circles and squares pseudo fractals)

Please log in (or register) to comment.


function u(t) {

}//
141/140


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

  • Load older comments...
  • joeytwiddle: I knocked up something a bit closer to the video, but it cost far too many characters. (Multiple layers, from large dark purple blur to small light-purple blur.)
  • New_Core: The first line dont do anything, right? so there is still room to play around with some colors. I tried a hsl "rainbow" thing on it.
  • donbright: joytwiddle might try codegolf.tk

Please log in (or register) to comment.


function u(t) {

}//
142/140


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

  • donbright: tone and overtone. (please move mouse over picture)

Please log in (or register) to comment.

Loading...
Next page