Dwitter | #fractal

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

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

Please log in (or register) to comment.

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

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.

remix of d/7512 by u/magna

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

  • Load older comments...
  • magna: It's monochrome, unfortunately. I couldn't find a quick way to add color (i.e. adjust the intensity based on R/G/B cells.)
  • tomxor: I can sort of fudge the colour with some kind of mod3 to selectively modulate the intensity in lum: (2+i%3)*n*10%50 duno how to fit it though.
  • magna: Nice! I used the dweet compressor (d/9207) to compress it: d/10843

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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...
  • magna: I had a RGB CRT setup, but I hadn't been able to fit any interesting patterns: d/7512
  • tomxor: I had a look at yours magna, they are true crt, much more realistic i think. The scan lines on this are just a sideeffect I exploited and it was easy to add colour distortion in the R().
  • magna: Here we go: d/10843

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

  • rbong: Scanline Rainbow Mandelbrot Section

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

}//
134/140


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

  • Load older comments...
  • iverjo: Nice! Now make the rectangles progressively smaller, so that the image becomes more and more detailed over time
  • MudkipGuy: heh! I was already playing around with that... for(r=Math.random,j=99;j--;){for(a=3*r(),b=2*r(),i=c=d=0;i<30&&c*c<4;i++)e=c,c=c*c-d*d+a-2,d=2*d*e+b-1;x.fillStyle="hsl("+i*8+",50%,50%)",x.fillRect(640*a,540*b,p=30/t**.5,p)}
  • katkip: Awesome!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/8622 by u/leSchieber

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

  • aleamb: love it!
  • aleamb: #hilbert #fractal
  • pavel: Shaved off 16 chars: for(t*=60,i=j=0,s=8;u=t&2?1:0,s*=2,s<513;t/=4,i+=s*u)1&t^u?j+=s:(u&&(i=s-16-i,j=s-16-j),i+=j-(j=i));x.lineTo(i,j);x.stroke()

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/10574 by u/rbong

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

  • rbong: Rainbow Cycling Mandelbrot
  • rbong: #rainbow #fractal #mandelbrot
  • rbong: This version has true color cycling, an animated Julia set, and is centered, but it's 18 characters over:
  • rbong: for(n=200;n-=1/64;x.fillStyle=\`hsl(${t*999+k*22},99%,50%)\`,x.fillRect(n%3*666,n*5,16,16))for(r=C(t*3),i=S(t*4),k=28;--k/r;i=j)j=2*r*i+1-n/99,r=r*r-i*i+1-(n%3)

Please log in (or register) to comment.

Loading...
Next page